You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
783 B
35 lines
783 B
<?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]));
|
|
}
|
|
|
|
}
|
|
|