src/CreateTemplateRenderExceptionCapableTrait.php
protected function _createTemplateRenderException(
        $message = null,
        $code = null,
        RootException $previous = null,
        TemplateInterface $template = null,
        $context = null
    ) {
        return new TemplateRenderException($message, $code, $previous, $template, $context);
    }
protected function _createTemplateRenderException(
        $message = null,
        $code = null,
        RootException $previous = null,
        TemplateInterface $template = null,
        $context = null
    ) {
        return new TemplateRenderException($message, $code, $previous, $template, $context);
    }
Creates a new render failure exception.

@since [*next-version*]

@param string|Stringable|null                             $message  The error message, if any.
@param int|null                                           $code     The error code, if any.
@param RootException|null                                 $previous The inner exception for chaining, if any.
@param TemplateInterface|null                             $template The associated renderer, if any.
@param array|ArrayAccess|stdClass|ContainerInterface|null $context  The associated context, if any.

@return TemplateRenderException The new exception.