NetworkException class

统一网络异常类

Implemented types

Constructors

NetworkException({required NetworkExceptionType type, required String message, int? statusCode, dynamic originalError, String? endpoint})

Properties

endpoint String?
请求端点
final
hashCode int
The hash code for this object.
no setterinherited
message String
异常消息
final
originalError → dynamic
原始错误
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
HTTP状态码
final
type NetworkExceptionType
异常类型
final

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