diff options
author | jenkins-bot <jenkins-bot@gerrit.wikimedia.org> | 2019-11-13 06:15:51 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@wikimedia.org> | 2019-11-13 06:15:51 +0000 |
commit | 40b28c73a770df2c6ecbe538a23c737ef4c1fe4c (patch) | |
tree | 6dc607996f6148df7fb128bb9bbb9d23608f0f5d /includes/Rest/LocalizedHttpException.php | |
parent | 4b19ef70b49e46250c9ebc2701786f4b88986f56 (diff) | |
parent | aa0720d37ce2976aae6ee89337b9598cab59d3d0 (diff) | |
download | mediawikicore-40b28c73a770df2c6ecbe538a23c737ef4c1fe4c.tar.gz mediawikicore-40b28c73a770df2c6ecbe538a23c737ef4c1fe4c.zip |
Merge "ParamValidator: Use MessageValue!"
Diffstat (limited to 'includes/Rest/LocalizedHttpException.php')
-rw-r--r-- | includes/Rest/LocalizedHttpException.php | 6 |
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; } |