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