MediaWiki  master
RevisionAccessException.php
Go to the documentation of this file.
1 <?php
23 namespace MediaWiki\Revision;
24 
25 use RuntimeException;
26 use Throwable;
27 use Wikimedia\NormalizedException\INormalizedException;
28 use Wikimedia\NormalizedException\NormalizedExceptionTrait;
29 
37 class RevisionAccessException extends RuntimeException implements INormalizedException {
38 
39  use NormalizedExceptionTrait;
40 
48  public function __construct(
49  string $normalizedMessage = '',
50  array $messageContext = [],
51  int $code = 0,
52  Throwable $previous = null
53  ) {
54  $this->normalizedMessage = $normalizedMessage;
55  $this->messageContext = $messageContext;
56  parent::__construct(
57  self::getMessageFromNormalizedMessage( $normalizedMessage, $messageContext ),
58  $code,
59  $previous
60  );
61  }
62 }
63 
68 class_alias( RevisionAccessException::class, 'MediaWiki\Storage\RevisionAccessException' );
MediaWiki\Revision\RevisionAccessException
Exception representing a failure to look up a revision.
Definition: RevisionAccessException.php:37
MediaWiki\Revision
Definition: ContributionsLookup.php:3
MediaWiki\Revision\RevisionAccessException\__construct
__construct(string $normalizedMessage='', array $messageContext=[], int $code=0, Throwable $previous=null)
Definition: RevisionAccessException.php:48