Elgg
Version 3.0
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Http
Exception
AjaxGatekeeperException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
Elgg\Http\Exception
;
4
5
use
Throwable
;
6
use
Elgg\BadRequestException
;
7
11
class
AjaxGatekeeperException
extends
BadRequestException
{
12
16
public
function
__construct
(
string
$message
=
""
,
int
$code
= 0,
Throwable
$previous = null) {
17
if
(!
$message
) {
18
$message
=
elgg_echo
(
'ajax:not_is_xhr'
);
19
}
20
21
parent::__construct(
$message
,
$code
, $previous);
22
}
23
}
Elgg\Http\Exception\AjaxGatekeeperException
Thrown when the request is not a valid ajax request.
Definition:
AjaxGatekeeperException.php:11
Elgg\Http\Exception\AjaxGatekeeperException\__construct
__construct(string $message="", int $code=0, Throwable $previous=null)
{}
Definition:
AjaxGatekeeperException.php:16
$message
$message
Definition:
set_maintenance_mode.php:7
elgg_echo
elgg_echo($message_key, array $args=[], $language="")
Given a message key, returns an appropriately translated full-text string.
Definition:
languages.php:21
$code
$code
Definition:
changepassword.php:9
Elgg\Http\Exception
Definition:
AdminGatekeeperException.php:3
Elgg\BadRequestException
Thrown when request is malformatted.
Definition:
BadRequestException.php:10
BadRequestException
Throwable
Generated on Mon Jan 25 2021 00:00:19 for Elgg by
1.8.11