MediaWiki
REL1_39
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\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 Mon Dec 23 2024 06:24:24 for MediaWiki by
1.10.0