Class ExceptionUtils
java.lang.Object
com.kingsrook.qqq.backend.core.utils.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
concatenateMessagesFromChain
(Exception exception) static <T extends Throwable>
TfindClassInRootChain
(Throwable e, Class<T> targetClass) Find a specific exception class in an exception's caused-by chain.getClassListFromRootChain
(Throwable e, Class<T> targetClass) Find a list of exceptions of the given class in an exception's caused-by chain.static Throwable
getRootException
(Exception exception) Get the root exception in a caused-by-chain.static String
Get the messages from the top invalid input: '&' bottoms (root) of an exception.
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
findClassInRootChain
-
getClassListFromRootChain
-
getRootException
-
concatenateMessagesFromChain
-
getTopAndBottomMessages
-