网络层内部错误码常量集合。
success用于默认的业务成功码(可通过 PDNetworkConfig.successCode 覆盖)- 负数区间用于网络层/解析层等其他服务端无业务码的错误,避免与后端业务码冲突
unknown用于兜底错误码,当其他错误码无法匹配时使用- 后续添加错误码时需按数值大小排序,避免与已存在错误码冲突
Properties
- hashCode → int
-
The hash code for this object.
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
- badCertificate → const int
- 证书校验失败。
- connectionTimeout → const int
- 连接超时。
- networkError → const int
- 网络错误(DNS/断网/连接失败等)。
- parseError → const int
- 解析错误(数据结构/类型不符合预期)。
- receiveTimeout → const int
- 接收超时。
- requestCancelled → const int
- 请求被取消。
- sendTimeout → const int
- 发送超时。
- success → const int
- 默认成功码(业务成功码)。
- unknown → const int
- 未知错误(兜底错误码)。