Package org.dspace.util
Class ThrowableUtils
java.lang.Object
org.dspace.util.ThrowableUtils
Things you wish
Throwable or some logging package would do for you.- Author:
- mwood
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringformatCauseChain(Throwable throwable) Trace a chain ofThrowables showing only causes.
-
Method Details
-
formatCauseChain
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'.
-