Exception handling during template rendering.

When an exception is thrown during template rendering, the output is either discarded or displayed depending on $_output.