ZipException.php 300 B

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