Package freemarker.template
Interface AttemptExceptionReporter
-
public interface AttemptExceptionReporterUsed for theattempt_exception_reportedconfiguration setting.
-
-
Field Summary
Fields Modifier and Type Field Description static AttemptExceptionReporterLOG_ERROR_REPORTERLogs the exception into the "freemarker.runtime" log category with "error" log level.static AttemptExceptionReporterLOG_WARN_REPORTERLikeLOG_ERROR_REPORTER, but it logs with "warn" log level.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidreport(TemplateException te, Environment env)Called to log or otherwise report the error that has occurred inside an#attemptblock.
-
-
-
Field Detail
-
LOG_ERROR_REPORTER
static final AttemptExceptionReporter LOG_ERROR_REPORTER
Logs the exception into the "freemarker.runtime" log category with "error" log level. This is the defaultAttemptExceptionReporter. The error message will explain that the error was handled by an#attemptblock.
-
LOG_WARN_REPORTER
static final AttemptExceptionReporter LOG_WARN_REPORTER
LikeLOG_ERROR_REPORTER, but it logs with "warn" log level.
-
-
Method Detail
-
report
void report(TemplateException te, Environment env)
Called to log or otherwise report the error that has occurred inside an#attemptblock.
-
-