MediaWiki master
CannotCreateActorException.php
Go to the documentation of this file.
1<?php
25namespace MediaWiki\Exception;
26
27use RuntimeException;
28use Wikimedia\NormalizedException\INormalizedException;
29use Wikimedia\NormalizedException\NormalizedExceptionTrait;
30
35class CannotCreateActorException extends RuntimeException implements INormalizedException {
36 use NormalizedExceptionTrait;
37
38 public function __construct( string $normalizedMessage, array $messageContext = [] ) {
39 $this->normalizedMessage = $normalizedMessage;
40 $this->messageContext = $messageContext;
41 parent::__construct(
42 self::getMessageFromNormalizedMessage( $normalizedMessage, $messageContext )
43 );
44 }
45}
46
48class_alias( CannotCreateActorException::class, 'CannotCreateActorException' );
Exception thrown when an actor can't be created.
__construct(string $normalizedMessage, array $messageContext=[])