TimeoutException constructor
- String? message,
- DioException? originalException,
- String? errorCode,
- 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.",
);