MediaWiki master
UploadChunkFileException.php
Go to the documentation of this file.
1<?php
9
10use RuntimeException;
11use Wikimedia\NormalizedException\INormalizedException;
12use Wikimedia\NormalizedException\NormalizedExceptionTrait;
13
17class UploadChunkFileException extends RuntimeException implements INormalizedException {
18 use NormalizedExceptionTrait;
19
20 public function __construct( string $message, array $context = [] ) {
21 $this->normalizedMessage = $message;
22 $this->messageContext = $context;
23
24 parent::__construct(
25 self::getMessageFromNormalizedMessage( $this->normalizedMessage, $this->messageContext )
26 );
27 }
28}