Package com.illumon.util
Class ExceptionDetails
java.lang.Object
com.illumon.util.ExceptionDetails
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExceptionDetails.Shallower
Class to help with determining details from Throwable instances.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classSometimes the initial stack trace is ridiculously deep, and irrelevant. -
Constructor Summary
ConstructorsConstructorDescriptionExceptionDetails(String errorMessage, String fullStackTrace, String shortCauses) ExceptionDetails(Throwable throwable) -
Method Summary
Modifier and TypeMethodDescriptionstatic booleantestExceptionDetails(ExceptionDetails exceptionDetails, Predicate<ExceptionDetails> testToApply) Returns true if exceptionDetails is not null and the result of applying testToApply on exceptionDetails is truetoString()
-
Constructor Details
-
ExceptionDetails
-
ExceptionDetails
-
-
Method Details
-
getErrorMessage
-
getFullStackTrace
-
getShortCauses
-
toString
-
testExceptionDetails
public static boolean testExceptionDetails(@Nullable ExceptionDetails exceptionDetails, @NotNull Predicate<ExceptionDetails> testToApply) Returns true if exceptionDetails is not null and the result of applying testToApply on exceptionDetails is true- Parameters:
exceptionDetails- the exception to testtestToApply- the test to apply- Returns:
- true if exceptionDetails is not null and testToApply returns true
-