I'd like to specify a template to catch exceptions thrown by the
Template Toolkit itself (f.e. syntax errors in my directives) in
addition to those exceptions I throw with a THROW directive. I am
currently catching these exceptions like so:
$::template->process("MyTemplate.atml", $::vars)
|| MyExceptionHandlingFunction($::template->error());
Is there any way to specify that these types of errors should be handled
by the template specified in the ERROR configuration option (perhaps
with a fall-back to an exception handling mechanism if that template
also fails)?
-myk