2023-07-15 10:16:32 +08:00
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
namespace ZipStream\Exception;
|
|
|
|
|
|
|
|
use ZipStream\Exception;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* This Exception gets invoked if a file wasn't found
|
|
|
|
*/
|
|
|
|
class FileNotReadableException extends Exception
|
|
|
|
{
|
|
|
|
/**
|
2023-08-09 15:01:26 +08:00
|
|
|
* Constructor of the Exception
|
|
|
|
*
|
|
|
|
* @param String $path - The path which wasn't found
|
2023-07-15 10:16:32 +08:00
|
|
|
*/
|
2023-08-09 15:01:26 +08:00
|
|
|
public function __construct(string $path)
|
|
|
|
{
|
2023-07-15 10:16:32 +08:00
|
|
|
parent::__construct("The file with the path $path isn't readable.");
|
|
|
|
}
|
|
|
|
}
|