PrepareDioExceptionExtension extension
Extension methods for preparing DioException handling functions.
- on
Methods
-
prepareDioFunction(
{BuildContext? context, required DioExceptionType type, required DioExceptionHandlerModel? exceptionHandlers}) → bool Function(DioException exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a DioException handling function based on the provided context and exception type. -
prepareExceptionFunction(
{ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → bool Function(Exception exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a general Exception handling function based on the provided context and exception model. -
prepareFormatExceptionFunction(
{ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → bool Function(FormatException exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a FormatException handling function based on the provided context and exception model. -
prepareJsonExceptionFunction(
{ExceptionExplanationModel? exceptionExplanationModel, BuildContext? context}) → bool Function(JsonUnsupportedObjectError exception)? -
Available on Nimphelos, provided by the PrepareDioExceptionExtension extension
Prepares a JsonUnsupportedObjectError handling function based on the provided context and exception model.