| java.io.StringWriter simple.http.serve.ExceptionBuffer
ExceptionBuffer | class ExceptionBuffer extends StringWriter (Code) | | The ExceptionBuffer captures a stack trace from
a Throwable . This enables the cause of an error
to be generated by a Report implementation. The
ErrorReport implementation is currently using
this to describe the cause of a service error.
author: Niall Gallagher |
Method Summary | |
public String | getCause() Generates the stace trace of the exception as a text string. |
ExceptionBuffer | public ExceptionBuffer(Throwable cause)(Code) | | Constructor for the ExceptionBuffer object. The
exception provided is used to generate a stack trace, which
can be used to generate an error report for a service.
Parameters: cause - the exception to acquire a stack trace from |
getCause | public String getCause()(Code) | | Generates the stace trace of the exception as a text string.
If the stack trace cannot be generated of if there is a
problem generating it then this will return an empty string.
this returns the stack trace of the exception |
|
|