public class MDCCapturingException 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 for adding semantic information to the exception chain. To just capture the MDC
context, use MDCWrappingException.
| Constructor and Description |
|---|
MDCCapturingException(String message) |
MDCCapturingException(String message,
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 MDCCapturingException(String message)
public final Map<String,String> getMdcContext()
MDCContextProvidernull.getMdcContext in interface MDCContextProviderCopyright © 2011–2025 pepsoft.org. All rights reserved.