ExceptionHandler class
Handles exceptions thrown by Dio during API calls. Converts DioException into custom BaseException types.
Constructors
- ExceptionHandler.new({required ExceptionOptions exceptionOptions})
- Constructor for ExceptionHandler
Properties
- exceptionOptions → ExceptionOptions
-
final
-
exceptions
→ StreamController<
BaseException> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
handle(
DioException e, {bool? silent}) → Future< void> - Handles Dio exceptions and adds them to the exceptions stream.
-
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