Package com.sap.cds.services.impl
Class ContextualizedServiceException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.sap.cds.services.ServiceException
com.sap.cds.services.impl.ContextualizedServiceException
- All Implemented Interfaces:
Serializable
This class extends
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.
- See Also:
-
Field Summary
Fields inherited from class com.sap.cds.services.ServiceException
args, errorStatus, messageTarget, Utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected List<EventContext>getLocalizedMessage(Locale locale) voidvia(EventContext context) Methods inherited from class com.sap.cds.services.ServiceException
getEventContexts, getLocalizedMessage, messageTarget, messageTarget, messageTarget, messageTarget, messageTarget, messageTarget, messageTargetMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
ContextualizedServiceException
-
-
Method Details
-
via
-
getMessage
- Overrides:
getMessagein classServiceException
-
getLocalizedMessage
- Overrides:
getLocalizedMessagein classServiceException
-
getPlainMessage
- Overrides:
getPlainMessagein classServiceException
-
getErrorStatus
- Overrides:
getErrorStatusin classServiceException
-
getMessageTarget
- Overrides:
getMessageTargetin classServiceException
-
getErrorContext
-
getViaList
-
collectEventContexts
- Overrides:
collectEventContextsin classServiceException
-