Class UnwrappableException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.clumd.projects.java_common_utils.base_enhancements.UnwrappableException
- All Implemented Interfaces:
UnwrappableThrowable,Serializable
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionUnwrappableException(String reason) UnwrappableException(String reason, Object... metadata) UnwrappableException(String reason, Throwable cause) UnwrappableException(String reason, Throwable cause, Object... metadata) UnwrappableException(Supplier<String> reason) UnwrappableException(Supplier<String> reason, Object... metadata) UnwrappableException(Supplier<String> reason, Throwable cause) UnwrappableException(Supplier<String> reason, Throwable cause, Object... metadata) -
Method Summary
Modifier and TypeMethodDescriptionunwrapReasonsIntoList(boolean includeTrace) The implementation of this method should provide a list, where each element in the list represents one Exception in the tree of causes.unwrapReasonsIntoList(Throwable rootCause, boolean includeTrace) Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.clumd.projects.java_common_utils.base_enhancements.UnwrappableThrowable
unwrapReasons, unwrapReasons, unwrapReasonsIntoList
-
Field Details
-
metadata
-
-
Constructor Details
-
UnwrappableException
-
UnwrappableException
-
UnwrappableException
-
UnwrappableException
-
UnwrappableException
-
UnwrappableException
-
UnwrappableException
-
UnwrappableException
-
-
Method Details
-
unwrapReasonsIntoList
-
unwrapReasonsIntoList
Description copied from interface:UnwrappableThrowableThe implementation of this method should provide a list, where each element in the list represents one Exception in the tree of causes. A caller may also use the parameter to ask for the causes to include their respective stack traces. This may either be in-line to one string in the list, or it may explode them out into their own distinct entries.- Specified by:
unwrapReasonsIntoListin interfaceUnwrappableThrowable- Parameters:
includeTrace- Used to determine whether we should include the stack trace in the messages or not.- Returns:
- A collection of Strings, where each element represents one Exception in the tree of causes, which may contain the stack traces that each exception originated from.
-