MediaWiki master
ZipDirectoryReaderError.php
Go to the documentation of this file.
1<?php
21namespace Wikimedia\Mime;
22
23use Exception;
24
30class ZipDirectoryReaderError extends Exception {
32 protected $errorCode;
33
39 public function __construct( $code ) {
40 $this->errorCode = $code;
41 parent::__construct( "ZipDirectoryReader error: $code" );
42 }
43
47 public function getErrorCode() {
48 return $this->errorCode;
49 }
50}