ApiException class

Contains the response from the API when a request fails to complete as expected.

Implemented types
Annotations

Constructors

ApiException(String type, String message)
Constructs a new ApiException.
ApiException.fromJson(Map<String, dynamic> json)
Constructs a new ApiException from a JSON map.
factory

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
message String
The error message or other information returned from the API.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type String
The type of response returned from the API. (Usually error.)
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toJson() Map<String, dynamic>
Returns this object as a JSON map.
toString() String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
inherited