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