MediaWiki REL1_39
RevisionAccessException.php
Go to the documentation of this file.
1<?php
23namespace MediaWiki\Revision;
24
25use RuntimeException;
26use Throwable;
27use Wikimedia\NormalizedException\INormalizedException;
28use Wikimedia\NormalizedException\NormalizedExceptionTrait;
29
37class 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}
Exception representing a failure to look up a revision.
__construct(string $normalizedMessage='', array $messageContext=[], int $code=0, Throwable $previous=null)