MediaWiki
1.34.0
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\$errorData
array null $errorData
Definition:
HttpException.php:13
MediaWiki\Rest
MediaWiki\Rest\HttpException
This is the base exception class for non-fatal exceptions thrown from REST handlers.
Definition:
HttpException.php:10
MediaWiki\Rest\HttpException\getErrorData
getErrorData()
Definition:
HttpException.php:23
MediaWiki\Rest\HttpException\__construct
__construct( $message, $code=500, $errorData=null)
Definition:
HttpException.php:15
includes
Rest
HttpException.php
Generated on Thu Dec 19 2019 14:54:46 for MediaWiki by
1.8.16