TooManyRequestsException constructor

const TooManyRequestsException({
  1. String? message,
  2. Duration? retryAfter,
  3. DioException? originalException,
  4. String? errorCode,
  5. String? traceId,
})

Creates a TooManyRequestsException with an optional custom message and retryAfter.

Implementation

const TooManyRequestsException({String? message, this.retryAfter, super.originalException, super.errorCode, super.traceId})
  : super(message: message ?? "Too many requests. Please wait before trying again.");