|
Project Wonder 5.0.0.8795 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecter.extensions.foundation.ERXExceptionUtilities
public class ERXExceptionUtilities
Provides a set of utilities for displaying and managing exceptions.
| Nested Class Summary | |
|---|---|
static class |
ERXExceptionUtilities.HideStackTraceException
Wraps a root cause, but does not render a stack trace to the given writer. |
static interface |
ERXExceptionUtilities.WeDontNeedAStackTraceException
Implemented by any exception that you explicitly want to not appear in stack dumps. |
| Field Summary | |
|---|---|
static Logger |
log
|
| Constructor Summary | |
|---|---|
ERXExceptionUtilities()
|
|
| Method Summary | |
|---|---|
protected static void |
_printSingleStackTrace(Throwable t,
PrintWriter writer,
int exceptionDepth,
boolean cleanupStackTrace)
|
protected static Throwable |
getCause(Throwable t)
Returns the cause of an exception. |
static Throwable |
getMeaningfulThrowable(Throwable t)
Returns the "meaningful" root cause from a throwable. |
static void |
logStackTrace()
Logs a debug stack trace. |
static void |
printStackTrace()
Prints a debug stack trace to the console. |
static void |
printStackTrace(Throwable t)
Prints the given throwable to the console (stdout). |
static void |
printStackTrace(Throwable t,
OutputStream os)
Prints the given throwable to the given outputstream. |
static void |
printStackTrace(Throwable t,
PrintWriter writer)
Prints the given throwable to the given printwriter. |
static void |
printStackTrace(Throwable t,
PrintWriter writer,
int exceptionDepth)
Prints the given throwable to the given writer with an indent. |
static void |
printStackTrace(Throwable t,
Writer writer)
Prints the given throwable to the given printwriter. |
static String |
toParagraph(Throwable t)
Returns a paragraph form of the given throwable. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static Logger log
| Constructor Detail |
|---|
public ERXExceptionUtilities()
| Method Detail |
|---|
protected static Throwable getCause(Throwable t)
t - the original exception
public static String toParagraph(Throwable t)
t - the throwable to convert to paragraph form
public static Throwable getMeaningfulThrowable(Throwable t)
t - the meaningful exception given another throwable
public static void printStackTrace()
public static void logStackTrace()
public static void printStackTrace(Throwable t)
t - the throwable to print
public static void printStackTrace(Throwable t,
OutputStream os)
t - the throwable to printos - the stream to print to
public static void printStackTrace(Throwable t,
Writer writer)
t - the throwable to printwriter - the writer to print to
public static void printStackTrace(Throwable t,
PrintWriter writer)
t - the throwable to printwriter - the writer to print to
protected static void _printSingleStackTrace(Throwable t,
PrintWriter writer,
int exceptionDepth,
boolean cleanupStackTrace)
public static void printStackTrace(Throwable t,
PrintWriter writer,
int exceptionDepth)
t - the throwable to printwriter - the writer to print toexceptionDepth - the indent level to use
|
Last updated: Fri, Jan 9, 2009 04:35 AM EST | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||