Package org.dspace.util
Class ThrowableUtils
- java.lang.Object
-
- org.dspace.util.ThrowableUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringformatCauseChain(Throwable throwable)Trace a chain ofThrowables showing only causes.
-
-
-
Method Detail
-
formatCauseChain
public static String formatCauseChain(Throwable throwable)
Trace a chain ofThrowables showing only causes. Less voluminous than a stack trace. Useful if you just want to know what caused third-party code to return an uninformative exception message.- Parameters:
throwable- the exception or whatever.- Returns:
- list of messages from each
Throwablein the chain, separated by '\n'.
-
-