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