HttpError class

Implemented types

Constructors

HttpError(HttpErrorType httpErrorType, String message, {Exception cause, String logMsg})
HttpError.dioError(DioError error)
处理dio报错
HttpError.emptyDataError(dynamic data)
-------------------------------------------------------HttpError生成---------------------------------------------------
HttpError.emptyMixError(Map<String, HttpError> httpErrorMap, bool syncRequest)
HttpError.parseDataError(dynamic e, {String logMsg})
HttpError.unknown(dynamic e)

Properties

cause Exception
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
httpErrorType HttpErrorType
read / write
logMsg String
打印给开发者的msg
read / write
message String
可自定义,给用户的信息
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
override

Operators

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