ILIAS
release_5-3 Revision v5.3.23-19-g915713cf615
◀ ilDoc Overview
BadRequest.php
Go to the documentation of this file.
1
<?
php
2
12
class
SimpleSAML_Error_BadRequest
extends
SimpleSAML_Error_Error
{
13
14
18
private
$reason
;
19
20
26
public
function
__construct
(
$reason
) {
27
assert(
'is_string($reason)'
);
28
29
$this->reason =
$reason
;
30
parent::__construct(array(
'BADREQUEST'
,
'%REASON%'
=> $this->reason));
31
$this->httpCode = 400;
32
}
33
34
40
public
function
getReason
() {
41
return
$this->reason
;
42
}
43
44
}
php
An exception for terminatinating execution or to throw for unit testing.
SimpleSAML_Error_BadRequest
Definition:
BadRequest.php:12
SimpleSAML_Error_BadRequest\getReason
getReason()
Retrieve the reason why the request was invalid.
Definition:
BadRequest.php:40
SimpleSAML_Error_BadRequest\$reason
$reason
Reason why this request was invalid.
Definition:
BadRequest.php:18
SimpleSAML_Error_BadRequest\__construct
__construct($reason)
Create a new BadRequest error.
Definition:
BadRequest.php:26
SimpleSAML_Error_Error
Definition:
Error.php:11
libs
composer
vendor
simplesamlphp
simplesamlphp
lib
SimpleSAML
Error
BadRequest.php
Generated on Tue Sep 30 2025 19:00:57 for ILIAS by
1.9.4 (using
Doxyfile
)