First Local Commit - After Clean up.
Signed-off-by: Rick Hays <rhays@haysgang.com>
This commit is contained in:
35
system/Exceptions/FrameworkException.php
Normal file
35
system/Exceptions/FrameworkException.php
Normal file
@@ -0,0 +1,35 @@
|
||||
<?php namespace CodeIgniter\Exceptions;
|
||||
|
||||
/**
|
||||
* Class FrameworkException
|
||||
*
|
||||
* A collection of exceptions thrown by the framework
|
||||
* that can only be determined at run time.
|
||||
*
|
||||
* @package CodeIgniter\Exceptions
|
||||
*/
|
||||
|
||||
class FrameworkException extends \RuntimeException implements ExceptionInterface
|
||||
{
|
||||
|
||||
public static function forInvalidFile(string $path)
|
||||
{
|
||||
return new static(lang('Core.invalidFile', [$path]));
|
||||
}
|
||||
|
||||
public static function forCopyError(string $path)
|
||||
{
|
||||
return new static(lang('Core.copyError', [$path]));
|
||||
}
|
||||
|
||||
public static function forMissingExtension(string $extension)
|
||||
{
|
||||
return new static(lang('Core.missingExtension', [$extension]));
|
||||
}
|
||||
|
||||
public static function forNoHandlers(string $class)
|
||||
{
|
||||
return new static(lang('Core.noHandlers', [$class]));
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user