TaskSystem/vendor/maennchen/zipstream-php/src/Exception/StreamNotReadableException.php

24 lines
495 B
PHP
Raw Normal View History

2023-07-15 10:16:32 +08:00
<?php
declare(strict_types=1);
namespace ZipStream\Exception;
use ZipStream\Exception;
/**
2023-07-18 11:17:17 +08:00
* This Exception gets invoked if `fread` fails on a stream.
2023-07-15 10:16:32 +08:00
*/
class StreamNotReadableException extends Exception
{
/**
2023-07-18 11:17:17 +08:00
* Constructor of the Exception
*
* @param string $fileName - The name of the file which the stream belongs to.
2023-07-15 10:16:32 +08:00
*/
2023-07-18 11:17:17 +08:00
public function __construct(string $fileName)
2023-07-15 10:16:32 +08:00
{
2023-07-18 11:17:17 +08:00
parent::__construct("The stream for $fileName could not be read.");
2023-07-15 10:16:32 +08:00
}
}