RestException class
An HTTP error encountered during a REST API call, i.e. for calls returning non-2xx status codes.
- Inheritance
-
- Object
- ApiException
- RestException
- Implemented types
Constructors
- RestException(RestResponse response)
- An HTTP error encountered during a REST API call, i.e. for calls returning non-2xx status codes.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- httpStatusCode → int?
-
HTTP status of response, only available if error
finalinherited
- message → String
-
Message contained in the exception
finalinherited
- recoverySuggestion → String?
-
How to recover from this exception (Optional)
finalinherited
- response → RestResponse
-
The HTTP response from the server.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- underlyingException → String?
-
Underlying cause of this exception helpful for debugging (Optional)
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String - A string representation of this object.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited