Package | Description |
---|---|
org.apache.commons.lang3.exception |
Provides functionality for Exceptions.
|
Modifier and Type | Class and Description |
---|---|
class |
ContextedException
An exception that provides an easy and safe way to add contextual information.
|
class |
ContextedRuntimeException
A runtime exception that provides an easy and safe way to add contextual information.
|
class |
DefaultExceptionContext
Default implementation of the context storing the label-value pairs for contexted exceptions.
|
Modifier and Type | Field and Description |
---|---|
private ExceptionContext |
ContextedRuntimeException.exceptionContext
The context where the data is stored.
|
private ExceptionContext |
ContextedException.exceptionContext
The context where the data is stored.
|
Modifier and Type | Method and Description |
---|---|
ExceptionContext |
ExceptionContext.addContextValue(java.lang.String label,
java.lang.Object value)
Adds a contextual label-value pair into this context.
|
ExceptionContext |
ExceptionContext.setContextValue(java.lang.String label,
java.lang.Object value)
Sets a contextual label-value pair into this context.
|
Constructor and Description |
---|
ContextedException(java.lang.String message,
java.lang.Throwable cause,
ExceptionContext context)
Instantiates ContextedException with cause, message, and ExceptionContext.
|
ContextedRuntimeException(java.lang.String message,
java.lang.Throwable cause,
ExceptionContext context)
Instantiates ContextedRuntimeException with cause, message, and ExceptionContext.
|