NetworkException class
网络异常类
- Implemented types
Constructors
- NetworkException({required int statusCode, required String message, required String userMessage, String? originalError})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
final
- originalError → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
final
- userMessage → String
-
final
Methods
-
getUserFriendlyMessage(
) → String - 获取用户友好的错误消息
-
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