MediaWiki
REL1_34
HttpException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest
;
4
10
class
HttpException
extends
\Exception {
11
13
private
$errorData
=
null
;
14
15
public
function
__construct
( $message, $code = 500,
$errorData
=
null
) {
16
parent::__construct( $message, $code );
17
$this->errorData =
$errorData
;
18
}
19
23
public
function
getErrorData
() {
24
return
$this->errorData
;
25
}
26
}
MediaWiki\Rest\HttpException
This is the base exception class for non-fatal exceptions thrown from REST handlers.
Definition
HttpException.php:10
MediaWiki\Rest\HttpException\$errorData
array null $errorData
Definition
HttpException.php:13
MediaWiki\Rest\HttpException\getErrorData
getErrorData()
Definition
HttpException.php:23
MediaWiki\Rest\HttpException\__construct
__construct( $message, $code=500, $errorData=null)
Definition
HttpException.php:15
MediaWiki\Rest
includes
Rest
HttpException.php
Generated on Mon Nov 25 2024 16:05:39 for MediaWiki by
1.10.0