src/Exception/TemplateRenderException.php
protected function _setRenderer($renderer)
    {
        if ($renderer !== null && !($renderer instanceof TemplateInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Invalid template'),
                null,
                null,
                $renderer
            );
        }

        $this->_setRendererOriginal($renderer);
    }
protected function _setRenderer($renderer)
    {
        if ($renderer !== null && !($renderer instanceof TemplateInterface)) {
            throw $this->_createInvalidArgumentException(
                $this->__('Invalid template'),
                null,
                null,
                $renderer
            );
        }

        $this->_setRendererOriginal($renderer);
    }
{@inheritdoc}

The renderer must be a template.

@since [*next-version*]