MediaWiki master
CannotCreateActorException.php
Go to the documentation of this file.
1<?php
11namespace MediaWiki\Exception;
12
13use RuntimeException;
14use Wikimedia\NormalizedException\INormalizedException;
15use Wikimedia\NormalizedException\NormalizedExceptionTrait;
16
21class CannotCreateActorException extends RuntimeException implements INormalizedException {
22 use NormalizedExceptionTrait;
23
24 public function __construct( string $normalizedMessage, array $messageContext = [] ) {
25 $this->normalizedMessage = $normalizedMessage;
26 $this->messageContext = $messageContext;
27 parent::__construct(
28 self::getMessageFromNormalizedMessage( $normalizedMessage, $messageContext )
29 );
30 }
31}
32
34class_alias( CannotCreateActorException::class, 'CannotCreateActorException' );
Exception thrown when an actor can't be created.
__construct(string $normalizedMessage, array $messageContext=[])