Package com.illumon.util
Class ExceptionDetails
java.lang.Object
com.illumon.util.ExceptionDetails
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ExceptionDetails.Shallower
public class ExceptionDetails extends Object implements Serializable
Class to help with determining details from Throwable instances.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ExceptionDetails.Shallower
Sometimes the initial stack trace is ridiculously deep, and irrelevant. -
Constructor Summary
Constructors Constructor Description ExceptionDetails(Throwable throwable)
-
Method Summary
Modifier and Type Method Description String
getErrorMessage()
String
getFullStackTrace()
String
getShortCauses()
static boolean
testExceptionDetails(ExceptionDetails exceptionDetails, Predicate<ExceptionDetails> testToApply)
Returns true if exceptionDetails is not null and the result of applying testToApply on exceptionDetails is trueString
toString()
-
Constructor Details
-
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
-