public class MDCWrappingException extends Exception implements MDCContextProvider
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).
| Constructor and Description |
|---|
MDCWrappingException(Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String> |
getMdcContext()
Get the diagnostic context map.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MDCWrappingException(Throwable cause)
public final Map<String,String> getMdcContext()
MDCContextProvidernull.getMdcContext in interface MDCContextProviderCopyright © 2011–2023 pepsoft.org. All rights reserved.