aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Rest/LocalizedHttpException.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Rest/LocalizedHttpException.php')
-rw-r--r--includes/Rest/LocalizedHttpException.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/includes/Rest/LocalizedHttpException.php b/includes/Rest/LocalizedHttpException.php
index 184fe164b77b..84067ac6605f 100644
--- a/includes/Rest/LocalizedHttpException.php
+++ b/includes/Rest/LocalizedHttpException.php
@@ -7,8 +7,10 @@ use Wikimedia\Message\MessageValue;
class LocalizedHttpException extends HttpException {
private $messageValue;
- public function __construct( MessageValue $messageValue, $code = 500 ) {
- parent::__construct( 'Localized exception with key ' . $messageValue->getKey(), $code );
+ public function __construct( MessageValue $messageValue, $code = 500, $errorData = null ) {
+ parent::__construct(
+ 'Localized exception with key ' . $messageValue->getKey(), $code, $errorData
+ );
$this->messageValue = $messageValue;
}