FileNotFoundException.php 451 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. * 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 wasn't found.");
  18. }
  19. }