4
0

ZipException.php 313 B

12345678910111213141516
  1. <?php
  2. class FreshRSS_Zip_Exception extends Exception {
  3. /** @var int */
  4. private $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. }