public class ContextualizedServiceException extends ServiceException
ServiceException and is supposed to be used in the
dispatch loop of the generic Service implementation. It adds EventContext
information to the exception chain.
Using the ServiceException should be considered in all other places.
args, errorStatus, messageTarget, Utils| Constructor and Description |
|---|
ContextualizedServiceException(EventContext context,
Throwable cause) |
| Modifier and Type | Method and Description |
|---|---|
EventContext |
getErrorContext() |
ErrorStatus |
getErrorStatus() |
String |
getLocalizedMessage(Locale locale) |
String |
getMessage() |
MessageTarget |
getMessageTarget() |
String |
getPlainMessage() |
List<EventContext> |
getViaList() |
void |
via(EventContext context) |
getLocalizedMessage, messageTarget, messageTarget, messageTarget, messageTarget, messageTarget, messageTargetaddSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic ContextualizedServiceException(EventContext context, Throwable cause)
public void via(EventContext context)
public String getMessage()
getMessage in class ServiceExceptionpublic String getLocalizedMessage(Locale locale)
getLocalizedMessage in class ServiceExceptionpublic String getPlainMessage()
getPlainMessage in class ServiceExceptionpublic ErrorStatus getErrorStatus()
getErrorStatus in class ServiceExceptionpublic MessageTarget getMessageTarget()
getMessageTarget in class ServiceExceptionpublic EventContext getErrorContext()
public List<EventContext> getViaList()
Copyright © 2021. All rights reserved.