MediaWiki REL1_34
HttpException.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Rest;
4
10class 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}
This is the base exception class for non-fatal exceptions thrown from REST handlers.
__construct( $message, $code=500, $errorData=null)