for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Borobudur-Http package.
*
* (c) Hexacodelabs <http://hexacodelabs.com>
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Borobudur\Http\File\Exception;
/**
* @author Iqbal Maulana <[email protected]>
* @created 8/2/15
class AccessDeniedException extends FileException
{
* Constructor.
* @param string $file
public function __construct($file)
parent::__construct(sprintf('Access denied for file "%s".', $file));
}
* Exception when forbidden create directory.
* @param string $directory
* @return AccessDeniedException
public static function failedCreateDirectory($directory)
return new self(sprintf('Unable to write in the "%s" directory', $directory));
* Exception when forbidden write file on directory.
public static function failedWriteFileOnDirectory($directory)
return new self (sprintf('Unable to write in the "%s" directory', $directory));