DioError class

DioError describes the error info when request failed.

Implemented types

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
hashCode int
The hash code for this object. [...]
read-only, inherited
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
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
type DioErrorType
read / write

Methods

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

Operators

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