reject method

void reject(
  1. DioError error
)

Complete the request with a error directly! Other error interceptor(s) will not be executed.

Implementation

void reject(DioError error) {
  _completer.completeError(
    InterceptorState<DioError>(
      error,
      InterceptorResultType.reject,
    ),
    error.stackTrace,
  );
  _processNextInQueue?.call();
}