FileNotFoundException.php 395 B

12345678910111213141516171819202122
  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 FileNotFoundException extends Exception
  9. {
  10. /**
  11. * @internal
  12. */
  13. public function __construct(
  14. public readonly string $path
  15. ) {
  16. parent::__construct("The file with the path $path wasn't found.");
  17. }
  18. }