Total Complexity | 3 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
23 | class LoggerException extends Exception |
||
24 | { |
||
25 | /** |
||
26 | * @param string $name |
||
27 | * @return LoggerException |
||
28 | * @throws LangException |
||
29 | */ |
||
30 | public static function unsupportedAdapter(string $name): LoggerException |
||
31 | { |
||
32 | return new static(t('exception.not_supported_adapter', $name)); |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @param string $name |
||
37 | * @return LoggerException |
||
38 | * @throws LangException |
||
39 | */ |
||
40 | public static function logPathIsNotDirectory(string $name): LoggerException |
||
41 | { |
||
42 | return new static(t('exception.log_path_is_not_directory', $name)); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param string $name |
||
47 | * @return LoggerException |
||
48 | * @throws LangException |
||
49 | */ |
||
50 | public static function logPathIsNotFile(string $name): LoggerException |
||
53 | } |
||
54 | } |