| java.lang.Object org.apache.beehive.netui.util.HtmlExceptionFormatter
HtmlExceptionFormatter | public class HtmlExceptionFormatter (Code) | | Format a
java.lang.Throwable so that it displays well in HTML.
|
Method Summary | |
public static String | format(String message, Throwable t, boolean includeStackTrace) Format an exception into XHTML.
Optionally include a message and the stack trace.
The formatted exception will have line breaks replaced with XHTML line breaks for display
in HTML. |
format | public static String format(String message, Throwable t, boolean includeStackTrace)(Code) | | Format an exception into XHTML.
Optionally include a message and the stack trace.
The formatted exception will have line breaks replaced with XHTML line breaks for display
in HTML. The String message of the cause will be included, and the stack trace of the
cause is optionally included given the value of includeStackTrace
Parameters: message - the message to include with the formatted exception. This is in addition to the message in the stack trace. Parameters: t - a Throwable exception to format Parameters: includeStackTrace - a boolean that determines whether to include the stack trace in the formatted output the formatted error message, optionally including the stack trace. |
|
|