TimeoutError class final

超时错误

区分连接超时、发送超时、接收超时。

Inheritance

Constructors

TimeoutError({required String message, required TimeoutPhase phase, Duration? timeout, RequestOptions? requestOptions, StackTrace? stackTrace, Object? originalError, DateTime? timestamp})

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
用户友好的错误消息
finalinherited
originalError Object?
原始异常
finalinherited
phase TimeoutPhase
超时阶段
final
requestOptions RequestOptions?
原始请求配置(可选,非 Dio 错误可能为空)
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stackTrace StackTrace?
堆栈跟踪
finalinherited
timeout Duration?
超时时长
final
timestamp DateTime
错误发生时间戳
finalinherited

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