Package org.apache.tapestry5.services
Interface ExceptionReportWriter
-
- All Known Implementing Classes:
ExceptionReportWriterImpl
public interface ExceptionReportWriter
Used by the defaultExceptionReporterimplementation 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 voidwriteReport(java.io.PrintWriter writer, java.lang.Throwable exception)Analyzes the exception (using theExceptionAnalyzerservice) and then writes the result to the writer.voidwriteReport(java.io.PrintWriter writer, ExceptionAnalysis exception)Writes the analyzed exception to the writer.
-
-
-
Method Detail
-
writeReport
void writeReport(java.io.PrintWriter writer, java.lang.Throwable exception)
Analyzes the exception (using theExceptionAnalyzerservice) 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(java.io.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
-
-