DioErrorType enum

Inheritance

Constructors

DioErrorType()
const

Values

connectTimeout → const DioErrorType

It occurs when url is opened timeout.

sendTimeout → const DioErrorType

It occurs when url is sent timeout.

receiveTimeout → const DioErrorType

It occurs when receiving timeout.

response → const DioErrorType

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

cancel → const DioErrorType

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

other → const DioErrorType

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

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<DioErrorType>
A constant List of the values in this enum, in order of their declaration.