Package freemarker.template
Interface AttemptExceptionReporter
public interface AttemptExceptionReporter
Used for the
attempt_exception_reported
configuration setting.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic AttemptExceptionReporterLogs the exception into the "freemarker.runtime" log category with "error" log level.static AttemptExceptionReporterLikeLOG_ERROR_REPORTER, but it logs with "warn" log level. -
Method Summary
Modifier and TypeMethodDescriptionvoidreport(TemplateException te, Environment env)Called to log or otherwise report the error that has occurred inside an#attemptblock.
-
Field Details
-
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
LikeLOG_ERROR_REPORTER, but it logs with "warn" log level.
-
-
Method Details
-
report
Called to log or otherwise report the error that has occurred inside an#attemptblock.
-