TooManyRequestsException class
Exception thrown when a request exceeds rate limits.
This exception is typically thrown when a client makes too many requests within a given time period.
- Inheritance
-
- Object
- AppException
- TooManyRequestsException
Constructors
- TooManyRequestsException(String message, {int? retryAfter, dynamic details})
Properties
- details → dynamic
-
Optional additional information for debugging.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- instance → String?
-
A URI reference that identifies the specific occurrence of the problem.
finalinherited
- message → String
-
Human-readable error message (detail).
finalinherited
- retryAfter → int?
-
Number of seconds to wait before retrying
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int
-
HTTP-like status code (defaults to 500).
finalinherited
- title → String
-
A short, human-readable summary of the problem type.
finalinherited
- type → String
-
A URI reference that identifies the problem type.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toResponse(
) → Map< String, dynamic> -
Converts the exception to a serializable response map (RFC 7807).
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited