onError method
Called when an exception was occurred during the request.
Implementation
void onError(
  DioException err,
  ErrorInterceptorHandler handler,
) {
  handler.next(err);
}Called when an exception was occurred during the request.
void onError(
  DioException err,
  ErrorInterceptorHandler handler,
) {
  handler.next(err);
}