FileNotReadableException.php 457 B

1234567891011121314151617181920212223
  1. <?php
  2. declare(strict_types=1);
  3. namespace ZipStream\Exception;
  4. use ZipStream\Exception;
  5. /**
  6. * This Exception gets invoked if a file wasn't found
  7. */
  8. class FileNotReadableException extends Exception
  9. {
  10. /**
  11. * Constructor of the Exception
  12. *
  13. * @param String $path - The path which wasn't found
  14. */
  15. public function __construct(string $path)
  16. {
  17. parent::__construct("The file with the path $path isn't readable.");
  18. }
  19. }