Package io.github.amanzat.util
Class ExceptionUtils
java.lang.Object
io.github.amanzat.util.ExceptionUtils
Miscellaneous
Throwable utility methods and constants.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThrowableReturns the cause of thisthrowableif exists and is not the same instance with the throwable.static <T extends Throwable>
TthrowableOfType(Throwable throwable, Class<T> type) Returns the firstthrowableof the specified type in the exception chain if exists,nullotherwise.
-
Constructor Details
-
ExceptionUtils
public ExceptionUtils()
-
-
Method Details