public class MDCCapturingException extends RuntimeException 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.| Constructor and Description |
|---|
MDCCapturingException() |
MDCCapturingException(String message) |
MDCCapturingException(String message,
Throwable cause) |
MDCCapturingException(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()
public MDCCapturingException(String message)
public MDCCapturingException(Throwable cause)
public final Map<String,String> getMdcContext()
MDCContextProvidernull.getMdcContext in interface MDCContextProvider