|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.enhydra.error.ChainedThrowableSupport
Static methods used to implement the Chained* throwables.
Method Summary | |
static String |
getLocalizedMessage(ChainedThrowable except,
String superMsg)
Get the localhist message associated with this exception. |
static String |
getMessage(ChainedThrowable except,
String superMsg)
Get the message associated with this exception. |
static String |
makeMessage(Throwable cause)
Generate the message to set for the exception message when an explict message is not available. |
static void |
printCauseTrace(ChainedThrowable except)
Prints stacktrace and cause stacktrace. |
static void |
printCauseTrace(ChainedThrowable except,
PrintStream s)
Prints stacktrace and cause stacktrace. |
static void |
printCauseTrace(ChainedThrowable except,
PrintWriter out)
Prints stacktrace and cause stacktrace. |
Methods inherited from class java.lang.Object |
|
Method Detail |
public static String makeMessage(Throwable cause)
Throwable
as an argument. This method is used to
generate the message to has to the super constructor.cause
- The causing exception, which maybe null.public static String getMessage(ChainedThrowable except, String superMsg)
except
- The chained throwable generating the
message.superMsg
- The result of super.getMessage(), so
that the contained messages is available. Maybe null.public static String getLocalizedMessage(ChainedThrowable except, String superMsg)
except
- The chained throwable generating the message.superMsg
- The result of super.getLocalizedMessage(), so
that the contained messages is available. Maybe null.public static void printCauseTrace(ChainedThrowable except)
public static void printCauseTrace(ChainedThrowable except, PrintStream s)
public static void printCauseTrace(ChainedThrowable except, PrintWriter out)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |