RateLimitedException class

The API is asking the caller to slow down.

Worth catching on its own: the request is fine and will succeed if it is retried later, which is the opposite of what a server error means.

Inheritance

Constructors

RateLimitedException(String message, {int? status})

Properties

body String?
The response body exactly as it arrived, when there was one.
finalinherited
code String?
The API's machine-readable reason, when it sent one.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
message String
The response body, or a description of the failure when there was no body.
finalinherited
prefix String
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
status int?
The HTTP status the API answered with, when the failure came from a response at all.
finalinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
The failure, without the response body.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited