Elgg
Version 6.2
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Exceptions
Http
TooManyRequestsException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Exceptions\Http
;
4
5
use
Elgg\Exceptions\HttpException
;
6
12
class
TooManyRequestsException
extends
HttpException
{
13
17
public
function
__construct
(
string
$message
=
''
,
int
$code
= 0, ?\Throwable $previous = null) {
18
if
(!
$message
) {
19
$message
=
elgg_echo
(
'TooManyRequestsException'
);
20
}
21
22
if
(!
$code
) {
23
$code
=
ELGG_HTTP_TOO_MANY_REQUESTS
;
24
}
25
26
parent::__construct(
$message
,
$code
, $previous);
27
}
28
}
Elgg\Exceptions\Http\TooManyRequestsException
Thrown when the client sends to many requests in a given period.
Definition:
TooManyRequestsException.php:12
$message
$message
Definition:
set_maintenance_mode.php:7
elgg_echo
elgg_echo(string $message_key, array $args=[], string $language= '')
Elgg language module Functions to manage language and translations.
Definition:
languages.php:17
$code
$code
Definition:
changepassword.php:12
ELGG_HTTP_TOO_MANY_REQUESTS
const ELGG_HTTP_TOO_MANY_REQUESTS
Definition:
constants.php:89
Elgg\Exceptions\Http
Definition:
BadRequestException.php:3
Elgg\Exceptions\HttpException
Generic HTTP exception.
Definition:
HttpException.php:10
HttpException
Elgg\Exceptions\Http\TooManyRequestsException\__construct
__construct(string $message= '', int $code=0,?\Throwable $previous=null)
{}
Definition:
TooManyRequestsException.php:17
Generated on Fri Apr 25 2025 00:00:14 for Elgg by
1.8.11