First Local Commit - After Clean up.

Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
2019-12-02 14:54:38 -06:00
commit 10412ab7f6
486 changed files with 123242 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<?php namespace CodeIgniter\Files\Exceptions;
use CodeIgniter\Exceptions\ExceptionInterface;
class FileException extends \RuntimeException implements ExceptionInterface
{
public static function forUnableToMove(string $from = null, string $to = null, string $error = null)
{
return new static(lang('Files.cannotMove', [$from, $to, $error]));
}
}

View File

@@ -0,0 +1,11 @@
<?php namespace CodeIgniter\Files\Exceptions;
use CodeIgniter\Exceptions\ExceptionInterface;
class FileNotFoundException extends \RuntimeException implements ExceptionInterface
{
public static function forFileNotFound(string $path)
{
return new static(lang('Files.fileNotFound', [$path]));
}
}