DioError class
DioError describes the error info when request failed.
- Implemented types
Constructors
- DioError({required RequestOptions requestOptions, Response? response, DioErrorType type = DioErrorType.other, dynamic error})
Properties
- error ↔ dynamic
-
The original error/exception object; It's usually not null when
type
is DioErrorType.othergetter/setter pair - hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
no setter
- requestOptions ↔ RequestOptions
-
Request info.
getter/setter pair
- 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.getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stackTrace ↔ StackTrace?
-
getter/setter pair
- type ↔ DioErrorType
-
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited