Class MDCCapturingException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.pepsoft.util.mdc.MDCCapturingException
All Implemented Interfaces:
Serializable, MDCContextProvider

public class MDCCapturingException extends Exception implements 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 for adding semantic information to the exception chain. To just capture the MDC context, use MDCWrappingException.

See Also: