public abstract class AbstractException
extends org.apache.commons.lang3.exception.ContextedRuntimeException
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractException() |
|
AbstractException(ErrorType errorType)
Constructor with an
ErrorType. |
|
AbstractException(ErrorType errorType,
String message)
Constructor with an
ErrorType and a custom message. |
|
AbstractException(ErrorType errorType,
String message,
Throwable cause)
|
|
AbstractException(ErrorType errorType,
Throwable cause)
|
| Modifier and Type | Method and Description |
|---|---|
AbstractException |
addContextValue(ErrorContext label,
Object value)
Add a context entry to an exception as an
ErrorContext and an object. |
AbstractException |
addContextValue(String label,
Object value)
Add a context entry to an exception as a label and an object.
|
getContextEntries, getContextLabels, getContextValues, getFirstContextValue, getFormattedExceptionMessage, getMessage, getRawMessage, setContextValueaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringprotected AbstractException()
public AbstractException(ErrorType errorType)
ErrorType.errorType - the error type.public AbstractException(ErrorType errorType, Throwable cause)
errorType - the error type.cause - the cause of the exception.public AbstractException(ErrorType errorType, String message)
ErrorType and a custom message.errorType - the error type.message - the custom message.public AbstractException addContextValue(String label, Object value)
addContextValue in interface org.apache.commons.lang3.exception.ExceptionContextaddContextValue in class org.apache.commons.lang3.exception.ContextedRuntimeExceptionlabel - the label.value - the value.public AbstractException addContextValue(ErrorContext label, Object value)
ErrorContext and an object.label - the error context.value - the value.Copyright © 2021 Crabs Hue. All rights reserved.