dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Add MW_REST_API and MW_ENTRY_POINT"
[lhc/web/wiklou.git]
/
includes
/
Rest
/
HttpException.php
diff --git
a/includes/Rest/HttpException.php
b/includes/Rest/HttpException.php
index
ae6dde2
..
bcc414f
100644
(file)
--- a/
includes/Rest/HttpException.php
+++ b/
includes/Rest/HttpException.php
@@
-8,7
+8,19
@@
namespace MediaWiki\Rest;
* error response.
*/
class HttpException extends \Exception {
* error response.
*/
class HttpException extends \Exception {
- public function __construct( $message, $code = 500 ) {
+
+ /** @var array|null */
+ private $errorData = null;
+
+ public function __construct( $message, $code = 500, $errorData = null ) {
parent::__construct( $message, $code );
parent::__construct( $message, $code );
+ $this->errorData = $errorData;
+ }
+
+ /**
+ * @return array|null
+ */
+ public function getErrorData() {
+ return $this->errorData;
}
}
}
}