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.
getter/setter pair
- badCertificateModel ↔ ExceptionExplanationModel?
-
Explanation model for bad certificate exception.
getter/setter pair
- badResponse ↔ bool? Function(DioException exception)?
-
Handler function for Dio bad response exception.
getter/setter pair
- badResponseModel ↔ ExceptionExplanationModel?
-
Explanation model for bad response exception.
getter/setter pair
- cancel ↔ bool? Function(DioException exception)?
-
Handler function for Dio cancel exception.
getter/setter pair
- cancelModel ↔ ExceptionExplanationModel?
-
Explanation model for cancel exception.
getter/setter pair
- connectionError ↔ bool? Function(DioException exception)?
-
Handler function for Dio connection error exception.
getter/setter pair
- connectionErrorModel ↔ ExceptionExplanationModel?
-
Explanation model for connection error exception.
getter/setter pair
- connectionTimeout ↔ bool? Function(DioException exception)?
-
Handler function for Dio connection timeout exception.
getter/setter pair
- connectionTimeoutModel ↔ ExceptionExplanationModel?
-
Explanation model for connection timeout exception.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- receiveTimeout ↔ bool? Function(DioException exception)?
-
Handler function for Dio receive timeout exception.
getter/setter pair
- receiveTimeoutModel ↔ ExceptionExplanationModel?
-
Explanation model for receive timeout exception.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- sendTimeout ↔ bool? Function(DioException exception)?
-
Handler function for Dio send timeout exception.
getter/setter pair
- sendTimeoutModel ↔ ExceptionExplanationModel?
-
Explanation model for send timeout exception.
getter/setter pair
- unknown ↔ bool? Function(DioException exception)?
-
Handler function for unknown Dio exceptions.
getter/setter pair
- unknownModel ↔ ExceptionExplanationModel?
-
Explanation model for unknown exceptions.
getter/setter pair
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