MediaWiki
REL1_37
HttpException.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Rest
;
4
12
class
HttpException
extends
\Exception {
13
15
private
$errorData
;
16
24
public
function
__construct
( $message, $code = 500,
$errorData
=
null
) {
25
parent::__construct( $message, $code );
26
$this->errorData =
$errorData
;
27
}
28
32
public
function
getErrorData
() {
33
return
$this->errorData
;
34
}
35
}
MediaWiki\Rest\HttpException
This is the base exception class for non-fatal exceptions thrown from REST handlers.
Definition
HttpException.php:12
MediaWiki\Rest\HttpException\$errorData
array null $errorData
Definition
HttpException.php:15
MediaWiki\Rest\HttpException\getErrorData
getErrorData()
Definition
HttpException.php:32
MediaWiki\Rest\HttpException\__construct
__construct( $message, $code=500, $errorData=null)
Definition
HttpException.php:24
MediaWiki\Rest
includes
Rest
HttpException.php
Generated on Fri Apr 5 2024 23:40:47 for MediaWiki by
1.9.8