1 | <?php |
||
10 | class ContainerException extends \RuntimeException implements InteropContainerException |
||
11 | { |
||
12 | /** |
||
13 | * @var string The message template. Allowed variables are {error} and {id} |
||
14 | */ |
||
15 | protected static $template = 'An {error} occurred when attempting to retrieve the "{id}" entry from the container.'; |
||
16 | |||
17 | /** |
||
18 | * Creates a ContainerException by using the information from the previous exception |
||
19 | * |
||
20 | * @param string|mixed $id |
||
21 | * @param \Exception $prev |
||
22 | * |
||
23 | * @return ContainerException |
||
24 | */ |
||
25 | 4 | public static function fromPrevious($id, \Exception $prev = null) |
|
38 | } |
||
39 |