for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Phpml\Exception;
use Exception;
class FileException extends Exception
{
/**
* @param string $filePath
*
* @return FileException
*/
public static function missingFile(string $filePath): self
return new self(sprintf('File "%s" missing.', $filePath));
}
public static function cantOpenFile(string $filePath): self
return new self(sprintf('File "%s" can\'t be open.', $filePath));
public static function cantSaveFile(string $filePath): self
return new self(sprintf('File "%s" can\'t be saved.', $filePath));
public static function cantDeleteFile(string $filePath): self
return new self(sprintf('File "%s" can\'t be deleted.', $filePath));