StreamNotReadableException.php 494 B

12345678910111213141516171819202122
  1. <?php
  2. declare(strict_types=1);
  3. namespace ZipStream\Exception;
  4. use ZipStream\Exception;
  5. /**
  6. * This Exception gets invoked if `fread` fails on a stream.
  7. */
  8. class StreamNotReadableException extends Exception
  9. {
  10. /**
  11. * Constructor of the Exception
  12. *
  13. * @param string $fileName - The name of the file which the stream belongs to.
  14. */
  15. public function __construct(string $fileName)
  16. {
  17. parent::__construct("The stream for $fileName could not be read.");
  18. }
  19. }