class RateLimitReachedException extends SaloonException

Methods

__construct(string $limiterName, AdmissionPolicy|Cooldown $policy, Decision $result)

Create a rate limit exception.

policy()

Get the policy that denied the operation.

result()

Get the denial result.

Details

at line 17
__construct(string $limiterName, AdmissionPolicy|Cooldown $policy, Decision $result)

Create a rate limit exception.

Parameters

string $limiterName
AdmissionPolicy|Cooldown $policy
Decision $result

at line 31
AdmissionPolicy|Cooldown policy()

Get the policy that denied the operation.

Return Value

AdmissionPolicy|Cooldown

at line 39
Decision result()

Get the denial result.

Return Value

Decision