MediaWiki  master
UploadChunkFileException.php
Go to the documentation of this file.
1 <?php
24 use Wikimedia\NormalizedException\INormalizedException;
25 use Wikimedia\NormalizedException\NormalizedExceptionTrait;
26 
30 class UploadChunkFileException extends MWException implements INormalizedException {
31  use NormalizedExceptionTrait;
32 
33  public function __construct( $message, array $context = [] ) {
34  $this->normalizedMessage = $message;
35  $this->messageContext = $context;
36 
37  parent::__construct(
38  $this->getMessageFromNormalizedMessage( $this->normalizedMessage, $this->messageContext )
39  );
40  }
41 }
MediaWiki exception.
Definition: MWException.php:33
__construct( $message, array $context=[])