freemarker.template
Interface TemplateRuntimeHandler
- All Known Implementing Classes:
- SimpleEventAdapter, TemplateEventAdapter
public interface TemplateRuntimeHandler
Interface for handling events that occur during FM-Classic template
runtime. This can be implemented by adapter classes, or can be handled
directly.
- Since:
- 1.8
- Version:
- $Id: TemplateRuntimeHandler.java 1101 2013-04-01 04:17:32Z run2000 $
- See Also:
TemplateExceptionEvent
,
TemplateExceptionListener
Method Summary |
void |
fireExceptionThrown(java.lang.Object source,
java.lang.Exception exception,
java.io.Writer output,
java.lang.String sourceName,
TemplateRuntimeHandler.Severity severity)
Fires a TemplateExceptionEvent to indicate that an exception
has occurred in the FM-Classic runtime. |
fireExceptionThrown
void fireExceptionThrown(java.lang.Object source,
java.lang.Exception exception,
java.io.Writer output,
java.lang.String sourceName,
TemplateRuntimeHandler.Severity severity)
- Fires a
TemplateExceptionEvent
to indicate that an exception
has occurred in the FM-Classic runtime. Implementations can use this
method to pass the event to TemplateExceptionListener
objects.
- Parameters:
source
- the source object of the eventexception
- the exception that caused the event to be firedoutput
- the current Template output streamsourceName
- the name of the source class and method that fired
the eventseverity
- the severity of the exception