NetworkException class
Exception thrown when a network request fails.
- Implemented types
Constructors
- NetworkException(NetworkError error, String body, int code, BaseRequest? request)
-
const
- NetworkException.fromResponse(Response response)
-
factory
Properties
- body → String
-
The response body.
final
- code → int
-
The response code.
final
- error → NetworkError
-
The error that caused the exception.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- request → BaseRequest?
-
The request that caused the exception.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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