DioErrorType enum

Constants

CANCEL → const DioErrorType

When the request is cancelled, dio will throw a error with this type.

const DioErrorType(4)
CONNECT_TIMEOUT → const DioErrorType

It occurs when url is opened timeout.

const DioErrorType(0)
DEFAULT → const DioErrorType

Default error type, Some other Error. In this case, you can use the DioError.error if it is not null.

const DioErrorType(5)
RECEIVE_TIMEOUT → const DioErrorType

It occurs when receiving timeout.

const DioErrorType(2)
RESPONSE → const DioErrorType

When the server response, but with a incorrect status, such as 404, 503...

const DioErrorType(3)
SEND_TIMEOUT → const DioErrorType

It occurs when url is sent timeout.

const DioErrorType(1)
values → const List<DioErrorType>

A constant List of the values in this enum, in order of their declaration.

const List<DioErrorType>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

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