CertificateError class final

SSL 证书错误

SSL/TLS 证书验证失败。

Inheritance

Constructors

CertificateError({required String message, String? host, String? certificateInfo, RequestOptions? requestOptions, StackTrace? stackTrace, Object? originalError, DateTime? timestamp})

Properties

certificateInfo → String?
证书信息摘要
final
hashCode → int
The hash code for this object.
no setterinherited
host → String?
目标主机
final
message → String
用户友好的错误消息
finalinherited
originalError → Object?
原始异常
finalinherited
requestOptions → RequestOptions?
原始请求配置(可选,非 Dio 错误可能为空)
finalinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
stackTrace → StackTrace?
堆栈跟踪
finalinherited
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
withMessage(String message) → SmartError
返回一个仅替换了 message 的同类型错误实例。
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited