TimeoutException constructor

const TimeoutException({
  1. String? message,
  2. DioException? originalException,
  3. String? errorCode,
  4. String? traceId,
})

Creates a TimeoutException with an optional custom message.

Implementation

const TimeoutException({String? message, super.originalException, super.errorCode, super.traceId})
  : super(
      message:
          message ??
          "This operation is taking longer than expected. This might be due to:\n"
              "    • Slow internet connection\n"
              "    • Location restrictions in your country/region\n"
              "    • Server being temporarily unavailable\n\n"
              "Please check your internet connection and try again later.",
    );