1: <?php
2:
3: namespace Chromabits\Nucleus\View\Exceptions;
4:
5: use Chromabits\Nucleus\Meditation\TypeHound;
6: use Exception;
7:
8: 9: 10: 11: 12: 13:
14: class NodeChildRenderingException extends NodeRenderingException
15: {
16: 17: 18: 19: 20: 21: 22:
23: public function __construct($content, $code = 0, Exception $previous = null)
24: {
25: parent::__construct(
26: vsprintf(
27: 'Unknown child content type: %s. '
28: . 'Node child item cannot be rendered.',
29: [
30: TypeHound::fetch($content),
31: ]
32: ),
33: $code,
34: $previous
35: );
36:
37: $this->content = $content;
38: }
39: }
40: