LuckyThrottleException class
Thrown when a ThrottlePolicy rejects a request because the configured maximum wait time would be exceeded.
Like LuckyParseException, this is a client-side error — no HTTP request
was made and statusCode is always null.
try {
final r = await connector.send(MyRequest());
} on LuckyThrottleException catch (e) {
print('Throttled: ${e.message}');
}
- Inheritance
-
- Object
- LuckyException
- LuckyThrottleException
Constructors
- LuckyThrottleException(String message)
-
Creates a LuckyThrottleException with the given
message.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- message → String
-
The human-readable error message.
finalinherited
- response → LuckyResponse?
-
The LuckyResponse that triggered this exception, if available.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- statusCode → int?
-
The HTTP status code associated with this error, if available.
finalinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited