HttpStatusException class
An exception thrown when a non-OK HTTP status is returned from a request.
- Implemented types
Constructors
- HttpStatusException(Response response)
-
Constructs a new exception from the HTTP response.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String?
-
The reason/message associated with the status code.
no setter
- response → Response
-
The HTTP response associated with this exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
The status code associated with this exception.
no setter
- url → String?
-
The URL associated with this exception.
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited