Class MDCWrappingRuntimeException

All Implemented Interfaces:
Serializable, MDCContextProvider

public class MDCWrappingRuntimeException extends RuntimeException implements MDCContextProvider
A RuntimeException 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 information 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: