DioException constructor
      
      DioException({ 
    
- required RequestOptions requestOptions,
- Response? response,
- DioExceptionType type = DioExceptionType.unknown,
- Object? error,
- StackTrace? stackTrace,
- String? message,
Prefer using one of the other constructors. They're most likely better fitting.
Implementation
DioException({
  required this.requestOptions,
  this.response,
  this.type = DioExceptionType.unknown,
  this.error,
  StackTrace? stackTrace,
  this.message,
}) : stackTrace = identical(stackTrace, StackTrace.empty)
          ? requestOptions.sourceStackTrace ?? StackTrace.current
          : stackTrace ??
              requestOptions.sourceStackTrace ??
              StackTrace.current;