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.
Utils
Constructor and Description |
---|
ContextualizedServiceException(EventContext context,
Throwable cause) |
Modifier and Type | Method and Description |
---|---|
EventContext |
getErrorContext() |
ErrorStatus |
getErrorStatus() |
String |
getLocalizedMessage() |
String |
getMessage() |
MessageTarget |
getMessageTarget() |
String |
getPlainMessage() |
List<EventContext> |
getViaList() |
void |
via(EventContext context) |
messageTarget, messageTarget, messageTarget, messageTarget, messageTarget
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public ContextualizedServiceException(EventContext context, Throwable cause)
public void via(EventContext context)
public String getMessage()
getMessage
in class ServiceException
public String getLocalizedMessage()
getLocalizedMessage
in class ServiceException
public String getPlainMessage()
getPlainMessage
in class ServiceException
public ErrorStatus getErrorStatus()
getErrorStatus
in class ServiceException
public MessageTarget getMessageTarget()
getMessageTarget
in class ServiceException
public EventContext getErrorContext()
public List<EventContext> getViaList()
Copyright © 2020. All rights reserved.