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