Package org.pepsoft.util.mdc
Class MDCWrappingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.pepsoft.util.mdc.MDCWrappingException
- All Implemented Interfaces:
Serializable,MDCContextProvider
An
Exception which captures the current contents of the MDC thread local diagnostic context at the
moment of throwing. The captured context is available from the getMdcContext() method.
This exception is meant to only add the MDC context informatio to an exception chain, not any other semantic information, so that it can be safely unwrapped without losing any diagnostic information (other than the MDC context).
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the diagnostic context map.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MDCWrappingException
-
-
Method Details
-
getMdcContext
Description copied from interface:MDCContextProviderGet the diagnostic context map. May benull.- Specified by:
getMdcContextin interfaceMDCContextProvider
-