Package org.apache.tapestry5.services
Interface ExceptionReportWriter
- All Known Implementing Classes:
ExceptionReportWriterImpl
public interface ExceptionReportWriter
Used by the default
ExceptionReporter
implementation to convert an exception into
a stream of text that can be stored to a file. Other applications include sending the text via e-mail or other messaging
service.- Since:
- 5.4
-
Method Summary
Modifier and TypeMethodDescriptionvoid
writeReport
(PrintWriter writer, Throwable exception) Analyzes the exception (using theExceptionAnalyzer
service) and then writes the result to the writer.void
writeReport
(PrintWriter writer, ExceptionAnalysis exception) Writes the analyzed exception to the writer.
-
Method Details
-
writeReport
Analyzes the exception (using theExceptionAnalyzer
service) and then writes the result to the writer.- Parameters:
writer
- the PrintWriter to write to, not nullexception
- the exception to look at, possibly null
-
writeReport
Writes the analyzed exception to the writer.- Parameters:
writer
- the PrintWriter to write to, not nullexception
- the exception to look at, possibly null
-