onError method

void onError(
  1. DioException err,
  2. ErrorInterceptorHandler handler
)
inherited

Called when an exception was occurred during the request.

Implementation

void onError(
  DioException err,
  ErrorInterceptorHandler handler,
) {
  handler.next(err);
}