DioError class

DioError describes the error info when request failed.

Constructors

DioError({RequestOptions request, Response response, DioErrorType type: DioErrorType.DEFAULT, dynamic error})

Properties

error ↔ dynamic
The original error/exception object; It's usually not null when type is DioErrorType.DEFAULT
read / write
message → String
read-only
request RequestOptions
Request info.
read / write
response Response
Response info, it may be null if the request can't reach to the http server, for example, occurring a dns error, network is not available.
read / write
type DioErrorType
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited