DioExceptionType enum

The exception enumeration indicates what type of exception has happened during requests.

Inheritance
Available extensions

Values

connectionTimeout → const DioExceptionType

Caused by a connection timeout.

sendTimeout → const DioExceptionType

It occurs when url is sent timeout.

receiveTimeout → const DioExceptionType

It occurs when receiving timeout.

badCertificate → const DioExceptionType

Caused by an incorrect certificate as configured by ValidateCertificate.

badResponse → const DioExceptionType

The DioException was caused by an incorrect status code as configured by ValidateStatus.

cancel → const DioExceptionType

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

connectionError → const DioExceptionType

Caused for example by a xhr.onError or SocketExceptions.

unknown → const DioExceptionType

Default error type, Some other Error. In this case, you can use the DioException.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<DioExceptionType>
A constant List of the values in this enum, in order of their declaration.