MediaWiki master
SettingsBuilderException.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Settings;
4
5use RuntimeException;
6use Throwable;
7use Wikimedia\NormalizedException\INormalizedException;
8use Wikimedia\NormalizedException\NormalizedExceptionTrait;
9
10class SettingsBuilderException extends RuntimeException implements INormalizedException {
11 use NormalizedExceptionTrait;
12
19 public function __construct(
20 string $normalizedMessage = '',
21 array $messageContext = [],
22 int $code = 0,
23 Throwable $previous = null
24 ) {
25 $this->normalizedMessage = $normalizedMessage;
26 $this->messageContext = $messageContext;
27 parent::__construct(
28 self::getMessageFromNormalizedMessage( $normalizedMessage, $messageContext ),
29 $code,
30 $previous
31 );
32 }
33}
__construct(string $normalizedMessage='', array $messageContext=[], int $code=0, Throwable $previous=null)