forked from codeigniter4/CodeIgniter4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFrameworkException.php
More file actions
35 lines (28 loc) · 783 Bytes
/
Copy pathFrameworkException.php
File metadata and controls
35 lines (28 loc) · 783 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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]));
}
}