MediaWiki REL1_37
LocalizedHttpException.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Rest;
4
6
12
20 public function __construct( MessageValue $messageValue, $code = 500, $errorData = null ) {
21 parent::__construct(
22 'Localized exception with key ' . $messageValue->getKey(), $code, $errorData
23 );
24 $this->messageValue = $messageValue;
25 }
26
27 public function getMessageValue() {
29 }
30}
This is the base exception class for non-fatal exceptions thrown from REST handlers.
__construct(MessageValue $messageValue, $code=500, $errorData=null)
Value object representing a message for i18n.