DioException.connectionError constructor

DioException.connectionError({
  1. required RequestOptions requestOptions,
  2. required String reason,
  3. Object? error,
})

Implementation

factory DioException.connectionError({
  required RequestOptions requestOptions,
  required String reason,
  Object? error,
}) =>
    DioException(
      type: DioExceptionType.connectionError,
      message: 'The connection errored: $reason '
          'This indicates an error which most likely cannot be solved by the library.',
      requestOptions: requestOptions,
      response: null,
      error: error,
    );