assureDioException static method

  1. @internal
DioException assureDioException(
  1. Object error,
  2. RequestOptions requestOptions
)

Implementation

@internal
static DioException assureDioException(
  Object error,
  RequestOptions requestOptions,
) {
  if (error is DioException) {
    return error;
  }
  return DioException(
    requestOptions: requestOptions,
    error: error,
  );
}