WorkErrorType enum

Work的异常类型

Inheritance

Constructors

WorkErrorType()
const

Values

params → const WorkErrorType

任务传入参数错误

可能是Work.onCheckParams未通过,或者是url不合法

connectionTimeout → const WorkErrorType

连接超时

sendTimeout → const WorkErrorType

发送超时

receiveTimeout → const WorkErrorType

接收超时

response → const WorkErrorType

服务器响应错误,4xx,5xx

connection → const WorkErrorType

socket连接失败

certificate → const WorkErrorType

证书错误

cancel → const WorkErrorType

用户取消请求

task → const WorkErrorType

任务返回错误(应用业务逻辑失败)

Http请求成功,但是Work.onRequestResult返回false。 通常代表了业务逻辑失败。

parse → const WorkErrorType

响应数据解析错误

Http请求成功,但是读取响应数据时出错

noResult → const WorkErrorType

WorkData.result为null

目前仅在WorkFuture.requiredResultOrThrowWorkFuture.requiredResultOrThrowMessage中可能抛出

other → const WorkErrorType

一些其他异常,可能是网络库或其他数据处理异常

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
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<WorkErrorType>
A constant List of the values in this enum, in order of their declaration.