FeedException.php 435 B

12345678910111213
  1. <?php
  2. declare(strict_types=1);
  3. class FreshRSS_Feed_Exception extends Minz_Exception {
  4. /**
  5. * @param int $code The HTTP status code when known, e.g. 410 Gone, which mutes the feed
  6. */
  7. public function __construct(string $message = '', int $code = 0, ?Throwable $previous = null) {
  8. parent::__construct($message, previous: $previous);
  9. $this->code = $code; // Minz_Exception would reset it, keeping only its own error levels
  10. }
  11. }