for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Quantum PHP Framework
*
* An open source software development framework for PHP
* @package Quantum
* @author Arman Ag. <[email protected]>
* @copyright Copyright (c) 2018 Softberg LLC (https://softberg.org)
* @link http://quantum.softberg.org/
* @since 2.9.6
*/
namespace Quantum\Libraries\Storage\Exceptions;
use Quantum\Exceptions\BaseException;
* Class FileSystemException
* @package Quantum\Libraries\Storage
class FileSystemException extends BaseException
{
* @param string $name
* @return FileSystemException
public static function directoryNotExists(string $name): FileSystemException
return new static(t('exception.directory_not_exist', $name), E_WARNING);
}
public static function directoryNotWritable(string $name): FileSystemException
return new static(t('exception.directory_not_writable', $name), E_WARNING);
public static function fileAlreadyExists(): FileSystemException
return new static(t('exception.file_already_exists'), E_WARNING);
public static function incorrectTokenService(): FileSystemException
return new static(t('exception.incorrect_auth_service'), E_WARNING);