afterError method

Future<void> afterError(
  1. DioException err,
  2. ErrorInterceptorHandler handler
)

Runs when Dio reports an error (network, bad response, cancel, etc.). Default forwards unchanged.

Implementation

Future<void> afterError(
  DioException err,
  ErrorInterceptorHandler handler,
) async {
  handler.next(err);
}