DioExceptionHandlerModel class
DioExceptionHandlerModel class for handling specific Dio exceptions with custom behavior.
Constructors
- DioExceptionHandlerModel({bool? connectionTimeout(DioException exception)?, bool? sendTimeout(DioException exception)?, bool? receiveTimeout(DioException exception)?, bool? badCertificate(DioException exception)?, bool? badResponse(DioException exception)?, bool? cancel(DioException exception)?, bool? connectionError(DioException exception)?, bool? unknown(DioException exception)?, ExceptionExplanationModel? connectionTimeoutModel, ExceptionExplanationModel? sendTimeoutModel, ExceptionExplanationModel? receiveTimeoutModel, ExceptionExplanationModel? badCertificateModel, ExceptionExplanationModel? badResponseModel, ExceptionExplanationModel? cancelModel, ExceptionExplanationModel? connectionErrorModel, ExceptionExplanationModel? unknownModel})
Properties
- badCertificate ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio bad certificate exception.
read / write
- badCertificateModel ↔ ExceptionExplanationModel?
-
Explanation model for bad certificate exception.
read / write
- badResponse ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio bad response exception.
read / write
- badResponseModel ↔ ExceptionExplanationModel?
-
Explanation model for bad response exception.
read / write
- cancel ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio cancel exception.
read / write
- cancelModel ↔ ExceptionExplanationModel?
-
Explanation model for cancel exception.
read / write
- connectionError ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio connection error exception.
read / write
- connectionErrorModel ↔ ExceptionExplanationModel?
-
Explanation model for connection error exception.
read / write
- connectionTimeout ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio connection timeout exception.
read / write
- connectionTimeoutModel ↔ ExceptionExplanationModel?
-
Explanation model for connection timeout exception.
read / write
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- receiveTimeout ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio receive timeout exception.
read / write
- receiveTimeoutModel ↔ ExceptionExplanationModel?
-
Explanation model for receive timeout exception.
read / write
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- sendTimeout ↔ (bool? Function(DioException exception)?)
-
Handler function for Dio send timeout exception.
read / write
- sendTimeoutModel ↔ ExceptionExplanationModel?
-
Explanation model for send timeout exception.
read / write
- unknown ↔ (bool? Function(DioException exception)?)
-
Handler function for unknown Dio exceptions.
read / write
- unknownModel ↔ ExceptionExplanationModel?
-
Explanation model for unknown exceptions.
read / write
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited