1 | <?php |
||
21 | class InvalidConfigException extends DomainException implements ParserExceptionInterface |
||
22 | { |
||
23 | /** |
||
24 | * the exception to throw if the configuration file results as an empty active config. |
||
25 | * |
||
26 | * @param string $file file pathname |
||
27 | * |
||
28 | * @return InvalidConfigException the exception to throw |
||
29 | */ |
||
30 | 2 | public static function forEmptyConfig($file) |
|
37 | |||
38 | /** |
||
39 | * the exception to throw if a directive has no ending key. |
||
40 | * |
||
41 | * @param string $key a directive name |
||
42 | * |
||
43 | * @return InvalidConfigException the exception to throw |
||
44 | */ |
||
45 | 1 | public static function forEndingKeyNotFound($key) |
|
52 | |||
53 | /** |
||
54 | * the exception to throw if a simple directive does not match against the accepted syntax. |
||
55 | * |
||
56 | * @param string $line the line of the simple directive |
||
57 | * |
||
58 | * @return InvalidConfigException the exception to throw |
||
59 | */ |
||
60 | 1 | public static function forSimpleDirectiveSyntaxError($line) |
|
67 | } |
||
68 |