Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 6
0.00% covered (danger)
0.00%
0 / 1
CRAP
0.00% covered (danger)
0.00%
0 / 1
CannotCreateActorException
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
0.00% covered (danger)
0.00%
0 / 1
 __construct
0.00% covered (danger)
0.00%
0 / 5
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2/**
3 * Exception thrown when some operation failed
4 *
5 * @license GPL-2.0-or-later
6 * @file
7 *
8 * @since 1.31
9 */
10
11namespace MediaWiki\Exception;
12
13use RuntimeException;
14use Wikimedia\NormalizedException\INormalizedException;
15use Wikimedia\NormalizedException\NormalizedExceptionTrait;
16
17/**
18 * Exception thrown when an actor can't be created.
19 * @newable
20 */
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
33/** @deprecated class alias since 1.44 */
34class_alias( CannotCreateActorException::class, 'CannotCreateActorException' );