Package org.apache.tapestry5.services
Interface ExceptionReportWriter
-
- All Known Implementing Classes:
ExceptionReportWriterImpl
public interface ExceptionReportWriter
Used by the defaultExceptionReporter
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
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 Detail
-
writeReport
void writeReport(PrintWriter writer, Throwable exception)
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
void writeReport(PrintWriter writer, ExceptionAnalysis exception)
Writes the analyzed exception to the writer.- Parameters:
writer
- the PrintWriter to write to, not nullexception
- the exception to look at, possibly null
-
-