ErrorType enum

Categorizes SDK errors.

The built-in implementation currently produces contract and unknown for its own failures. Other values remain available for custom transports, stores, or interceptors that want to classify errors more precisely.

Inheritance
Available extensions

Values

offline → const ErrorType

The request failed because the device was offline.

timeout → const ErrorType

The request failed because it timed out.

unauthorized → const ErrorType

The request was rejected as unauthorized.

forbidden → const ErrorType

The request was rejected as forbidden.

badRequest → const ErrorType

The request body or parameters were invalid.

server → const ErrorType

The server returned a server-side failure.

contract → const ErrorType

The response did not satisfy the configured contract.

parse → const ErrorType

The response could not be parsed as expected.

unknown → const ErrorType

The error could not be classified more precisely.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
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<ErrorType>
A constant List of the values in this enum, in order of their declaration.