HttpError class

Constructors

HttpError({required int statusCode, required String errorCode, String? errorMessage, dynamic errorData, required dynamic requestOptions, dynamic response, dynamic type = DioErrorType.other, dynamic error})

Properties

error ↔ dynamic
The original error/exception object; It's usually not null when type is DioErrorType.other
getter/setter pairinherited
errorCode String
final
errorData → dynamic
final
errorMessage String?
final
errorType HttpErrorType
latefinal
hashCode int
The hash code for this object.
no setterinherited
message String
no setterinherited
requestOptions ↔ RequestOptions
Request info.
getter/setter pairinherited
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 pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
getter/setter pairinherited
statusCode int
final
type ↔ DioErrorType
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.

Operators

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