JsResult class
http_exception @Author ruilin @Date 2023/12/5
@Description 网络异常定义
Constructors
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
Static Properties
- BAD_CERTIFICATE → JsResultCode
-
证书无效
final
- BAD_RESPONSE → JsResultCode
-
无效响应
final
- CONNECTION_ERR → JsResultCode
-
连接失败(无网络)
final
- CONNECTION_TIMEOUT → JsResultCode
-
连接超时
final
- COOKIE_ERR → JsResultCode
-
YouTube cookie错误
final
- DATA_ERROR → JsResultCode
-
数据异常
final
- JS_NOT_FOUND → JsResultCode
-
脚本找不到
final
- NO_DATA → JsResultCode
-
没数据
final
- PARAMS_ERR → JsResultCode
-
请求参数异常
final
- REQUEST_TIMEOUT → JsResultCode
-
请求超时
final
- RUN_CODE_EXC → JsResultCode
-
运行异常
final
- RUN_CODE_TIMEOUT → JsResultCode
-
运行超时
final
- SER_TOKEN_ERR → JsResultCode
-
服务错误:证书校验失败
final
- SUCCESS → JsResultCode
-
成功
final
- UNKNOWN_ERR → JsResultCode
-
未知网络错误
final
- UNKNOWN_EXC → JsResultCode
-
未知异常
final
Static Methods
-
fromDio(
DioException e) → dynamic -
fromException(
Object e) → dynamic -
fromRunCodeException(
Object e) → dynamic