BaseApiException class sealed

Available extensions
Annotations
  • @freezed

Constructors

BaseApiException.badCertificate()
ValidateCertificate配置的证书不正确引起
const
factory
BaseApiException.badResponse({@igFreezedJson Response? response, int? statusCode})
服务器错误
const
factory
BaseApiException.businessException({required String message, @igFreezedJson Object? error, @igFreezedJson StackTrace? stackTrace})
const
factory
BaseApiException.cancel({@igFreezedJson Object? error, @igFreezedJson RequestOptions? options})
请求被主动关闭异常
const
factory
BaseApiException.connectionError()
例如由“xhr.onError”或SocketExceptions引起。
const
factory
BaseApiException.connectionTimeout()
由连接超时引起的异常
const
factory
BaseApiException.createFromDioException(DioException dioException)
factory
BaseApiException.fromJson(Map<String, dynamic> json)
factory
BaseApiException.receiveTimeout()
它发生在接收超时时。
const
factory
BaseApiException.sendTimeout()
当url发送超时时会发生这种情况。
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?

Available on BaseApiException, provided by the BaseApiExceptionEx extension

no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this BaseApiException to a JSON map.
inherited
toString() String
A string representation of this object.
inherited
tryGetRequestOptions() → RequestOptions?

Available on BaseApiException, provided by the BaseApiExceptionEx extension

tryGetResponse() → Response?

Available on BaseApiException, provided by the BaseApiExceptionEx extension

Operators

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