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 Type
  Method
  Description
  `void`
  `writeReport(PrintWriter writer, Throwable exception)`
  Analyzes the exception (using the `ExceptionAnalyzer` 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

    void writeReport(PrintWriter writer, Throwable exception)
    Analyzes the exception (using the `ExceptionAnalyzer` service) and then writes the result to the writer.
    Parameters:
      `writer` - the PrintWriter to write to, not null
      `exception` - 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 null
      `exception` - the exception to look at, possibly null