handle method

Future<void> handle(
  1. DioException e, {
  2. bool? silent,
})

Handles Dio exceptions and adds them to the exceptions stream.

Implementation

Future<void> handle(
  DioException e, {
  bool? silent,
}) async {
  final exception = _getExceptionFromDioError(e, silent ?? false);

  exceptions.add(exception);
  // exceptionOptions.reset();
}