JsonRestApiException class

Represents an exception thrown while performaing a json REST API request.

Inheritance
Implemented types

Constructors

JsonRestApiException.fromJsonRestApiResponse(JsonRestApiResponse response, {String? reasonPhrase})
Creates a new exception from this response.

Properties

endpoint String
The endpoint this request was sent to.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
jsonArray List?
Some API endpoints may return an array and not a json object. For this case, this is used.
finalinherited
jsonObject Map<String, dynamic>?
The response json if there is any
finalinherited
method RequestMethod
The http method used in this request like GET or POST.
finalinherited
raw String
The raw body response.
finalinherited
reasonPhrase String?
The http reasonPhrase
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int
The returned status code which should be around 200-205
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited