MediaWiki REL1_34
LocalizedHttpException.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Rest;
4
6
8 private $messageValue;
9
10 public function __construct( MessageValue $messageValue, $code = 500 ) {
11 parent::__construct( 'Localized exception with key ' . $messageValue->getKey(), $code );
12 $this->messageValue = $messageValue;
13 }
14
15 public function getMessageValue() {
17 }
18}
This is the base exception class for non-fatal exceptions thrown from REST handlers.
__construct(MessageValue $messageValue, $code=500)
Value object representing a message for i18n.