First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
13
system/Files/Exceptions/FileException.php
Normal file
13
system/Files/Exceptions/FileException.php
Normal 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]));
|
||||
}
|
||||
|
||||
}
|
||||
11
system/Files/Exceptions/FileNotFoundException.php
Normal file
11
system/Files/Exceptions/FileNotFoundException.php
Normal 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]));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user