Class ExceptionUtils
java.lang.Object
com.kingsrook.qqq.backend.core.utils.ExceptionUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringconcatenateMessagesFromChain(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 ThrowablegetRootException(Exception exception) Get the root exception in a caused-by-chain.static StringGet the messages from the top invalid input: '&' bottoms (root) of an exception.static voidtryCatch(UnsafeVoidVoidMethod<?> method, Consumer<Throwable> catcher) static voidtryIgnore(UnsafeVoidVoidMethod<?> method)
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details
-
findClassInRootChain
-
getClassListFromRootChain
-
getRootException
-
concatenateMessagesFromChain
-
getTopAndBottomMessages
-
tryIgnore
-
tryCatch
-