|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnl.knowledgeplaza.util.ExceptionUtil
public class ExceptionUtil
| Constructor Summary | |
|---|---|
ExceptionUtil()
|
|
| Method Summary | |
|---|---|
static String |
describe(Throwable t)
Fetch all possible data from an exception (causes, extra info, next exceptions, ...) as a string |
static String |
describeExtended(Throwable t)
Fetch all possible data from an exception (causes, extra info, next exceptions, ...) as a string plus environment information like system properties. |
static String |
determineDisplayableMessage(Throwable t)
Create a displayable exception test |
static Throwable |
findThrowableInChain(Throwable t,
Class clazz)
|
static String |
getStacktrace(Throwable t)
Return the stacktrace of a throwable as a string |
static void |
main(String[] args)
|
static void |
throwUnchecked(Throwable t)
Sneekly throws an checked exception (so there is no need to declare the throws) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ExceptionUtil()
| Method Detail |
|---|
public static String getStacktrace(Throwable t)
t - Throwable to be stacktraced
public static String determineDisplayableMessage(Throwable t)
t -
public static String describe(Throwable t)
t -
public static String describeExtended(Throwable t)
t -
public static Throwable findThrowableInChain(Throwable t,
Class clazz)
t - clazz -
public static void throwUnchecked(Throwable t)
exception - public static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||