Package de.xima.fc.utils
Class XExceptionUtils
- java.lang.Object
-
- de.xima.fc.utils.XExceptionUtils
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
getAllFormattedCausesAndSuppressed(Throwable error)
For a given throwable, returns a string with the message of the throwable and the messages from all causes and suppressed throwables of that throwable.
-
-
-
Method Detail
-
getAllFormattedCausesAndSuppressed
public static String getAllFormattedCausesAndSuppressed(Throwable error)
For a given throwable, returns a string with the message of the throwable and the messages from all causes and suppressed throwables of that throwable. Produces output similar toThrowable.printStackTrace()
, but with only the exception messages and without the call stack entries.- Parameters:
error
- Throwable to process.- Returns:
- The messages of the error and all its causes and suppressions.
-
-