public interface AttemptExceptionReporter
attempt_exception_reported
configuration setting.Modifier and Type | Field and Description |
---|---|
static AttemptExceptionReporter |
LOG_ERROR_REPORTER
Logs the exception into the "freemarker.runtime" log category with "error" log level.
|
static AttemptExceptionReporter |
LOG_WARN_REPORTER
Like
LOG_ERROR_REPORTER , but it logs with "warn" log level. |
Modifier and Type | Method and Description |
---|---|
void |
report(TemplateException te,
Environment env)
Called to log or otherwise report the error that has occurred inside an
#attempt block. |
static final AttemptExceptionReporter LOG_ERROR_REPORTER
AttemptExceptionReporter
. The error message will explain that the error was handled by an
#attempt
block.static final AttemptExceptionReporter LOG_WARN_REPORTER
LOG_ERROR_REPORTER
, but it logs with "warn" log level.void report(TemplateException te, Environment env)
#attempt
block.