HttpError class

Constructors

HttpError.new(String? code, String? message)
HttpError.dioError(DioError error)

Properties

code String?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
message String?
getter/setter pair
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.
override

Operators

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

Constants

BAD_GATEWAY → const int
CANCEL → const String
网络请求取消
CONNECT_TIMEOUT → const String
连接超时
FORBIDDEN → const int
GATEWAY_TIMEOUT → const int
HTTP_ERROR → const String
协议错误
INTERNAL_SERVER_ERROR → const int
NETWORK_ERROR → const String
网络错误
NOT_FOUND → const int
PARSE_ERROR → const String
解析错误
RECEIVE_TIMEOUT → const String
响应超时
REQUEST_TIMEOUT → const int
SEND_TIMEOUT → const String
发送超时
SERVICE_UNAVAILABLE → const int
SSL_ERROR → const String
证书错误
UNAUTHORIZED → const int
HTTP 状态码
UNKNOWN → const String
未知错误