|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
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.
TemplateExceptionEvent,
TemplateExceptionListener| Field Summary | |
|---|---|
static int |
SEVERITY_DEPRECATION
Used whenever a deprecated construct is encountered. |
static int |
SEVERITY_ERROR
A severe error has occurred, that may prevent FM-Classic from processing the template. |
static int |
SEVERITY_WARNING
An error that is non-critical to the continuation of processing. |
| Method Summary | |
|---|---|
void |
fireExceptionThrown(java.lang.Object source,
java.lang.Exception exception,
java.io.Writer output,
java.lang.String sourceName,
int severity)
Fires a TemplateExceptionEvent to indicate that an exception
has occurred in the FM-Classic runtime. |
| Field Detail |
|---|
static final int SEVERITY_ERROR
static final int SEVERITY_WARNING
static final int SEVERITY_DEPRECATION
| Method Detail |
|---|
void fireExceptionThrown(java.lang.Object source,
java.lang.Exception exception,
java.io.Writer output,
java.lang.String sourceName,
int severity)
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.
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||