RequestRateLimitedException extends AbstractClientErrorException
Exception thrown when a rate limiter has disallowed further processing
Table of Contents
Properties
- $statusHeaders : array<string|int, mixed>
- $title : string
Methods
- __construct() : mixed
- Constructor for this Status Exception
- getStatusHeaders() : array<string|int, mixed>
- Getter for the Status Header.
- getTitle() : string
- Getter for the title.
- setTitle() : mixed
- Setter for the title.
Properties
$statusHeaders
protected
array<string|int, mixed>
$statusHeaders
HTTP Status Header lines
$title
protected
string
$title
= 'Oops, an error occurred!'
Title of the message
Methods
__construct()
Constructor for this Status Exception
public
__construct(string|array<string|int, mixed> $statusHeaders, string $message[, string $title = '' ][, int $code = 0 ]) : mixed
Parameters
- $statusHeaders : string|array<string|int, mixed>
-
HTTP Status header line(s)
- $message : string
-
Error Message
- $title : string = ''
-
Title of the error message
- $code : int = 0
-
Exception Code
getStatusHeaders()
Getter for the Status Header.
public
getStatusHeaders() : array<string|int, mixed>
Return values
array<string|int, mixed>getTitle()
Getter for the title.
public
getTitle() : string
Return values
stringsetTitle()
Setter for the title.
public
setTitle(string $title) : mixed
Parameters
- $title : string