ZipException.php 330 B

12345678910111213141516
  1. <?php
  2. declare(strict_types=1);
  3. class FreshRSS_Zip_Exception extends Minz_Exception {
  4. private int $zipErrorCode = 0;
  5. public function __construct(int $zipErrorCode) {
  6. parent::__construct('ZIP error!', 2141);
  7. $this->zipErrorCode = $zipErrorCode;
  8. }
  9. public function zipErrorCode(): int {
  10. return $this->zipErrorCode;
  11. }
  12. }