Elgg
Version master
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
File Members
engine
classes
Elgg
Exceptions
Http
CsrfException.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
CsrfException
extends
HttpException
{
13
17
public
function
__construct
(
string
$message
=
''
,
int
$code
= 0, \Throwable $previous = null) {
18
if
(!
$code
) {
19
$code
=
ELGG_HTTP_FORBIDDEN
;
20
}
21
22
parent::__construct(
$message
,
$code
, $previous);
23
}
24
}
ELGG_HTTP_FORBIDDEN
const ELGG_HTTP_FORBIDDEN
Definition:
constants.php:67
$message
$message
Definition:
set_maintenance_mode.php:7
Elgg\Exceptions\Http\CsrfException\__construct
__construct(string $message= '', int $code=0,\Throwable $previous=null)
{}
Definition:
CsrfException.php:17
$code
$code
Definition:
changepassword.php:12
Elgg\Exceptions\Http\CsrfException
Thrown when CSRF tokens mismatch.
Definition:
CsrfException.php:12
Elgg\Exceptions\Http
Definition:
BadRequestException.php:3
Elgg\Exceptions\HttpException
Generic HTTP exception.
Definition:
HttpException.php:10
HttpException
Generated on Thu Dec 12 2024 00:02:49 for Elgg by
1.8.11