Uses of Class
com.sap.cds.services.ServiceException
Packages that use ServiceException
Package
Description
-
Uses of ServiceException in com.sap.cds.services
Methods in com.sap.cds.services that return ServiceExceptionModifier and TypeMethodDescriptionServiceException.additionalTargets(MessageTarget... additionalTargets) Sets the provided array ofMessageTargetinstances as additional targets.ServiceException.additionalTargets(List<MessageTarget> additionalTargets) Sets the provided list ofMessageTargetinstances as additional targets.ServiceException.longTextUrl(String longTextUrl) Adds the passedlongTextUrlto the current exception.ServiceException.messageTarget(com.sap.cds.ql.cqn.Path path, com.sap.cds.reflect.CdsElement element) Adds the passed path and element as target to the currentServiceException.ServiceException.messageTarget(MessageTarget target) Sets the providedMessageTarget<E extends com.sap.cds.ql.StructuredType<E>>
ServiceExceptionServiceException.messageTarget(Class<E> type, Function<E, Object> path) Adds the passed path as target to the currentServiceException.ServiceException.messageTarget(String target) Sets the provided string-based target.<E extends com.sap.cds.ql.StructuredType<E>>
ServiceExceptionServiceException.messageTarget(String parameter, Class<E> type, Function<E, Object> path) Adds the passed target parameter and path as target to the currentServiceException.ServiceException.messageTarget(String parameter, Function<com.sap.cds.ql.StructuredType<?>, Object> path) Adds the passed target parameter and path as target to the currentServiceException.ServiceException.messageTarget(Function<com.sap.cds.ql.StructuredType<?>, Object> path) Adds the passed path as target to the currentServiceException.ServiceException.transition(boolean isTransition) Sets thetransitionindicator of this exception.Methods in com.sap.cds.services with parameters of type ServiceExceptionModifier and TypeMethodDescriptionCoreFactory.createMessage(String text, ServiceException exception) Creates aMessageobject. -
Uses of ServiceException in com.sap.cds.services.application
Methods in com.sap.cds.services.application that return ServiceExceptionModifier and TypeMethodDescriptionErrorResponseEventContext.getException()Returns theServiceExceptionthat caused the error being transformed into an error response.Methods in com.sap.cds.services.application with parameters of type ServiceExceptionModifier and TypeMethodDescriptionApplicationLifecycleService.errorResponse(ServiceException exception) Called by protocol adapters to control transformation of exception and messages into an error response.voidErrorResponseEventContext.setException(ServiceException exception) Sets theServiceExceptionthat should be transformed into an error response. -
Uses of ServiceException in com.sap.cds.services.messages
Methods in com.sap.cds.services.messages with parameters of type ServiceExceptionModifier and TypeMethodDescriptionstatic MessageMessage.create(String text, ServiceException exception) This method creates a standalone instance ofMessagethat is not added to theMessagesof the activeRequestContext.Methods in com.sap.cds.services.messages that throw ServiceExceptionModifier and TypeMethodDescriptionvoidMessages.throwIfError()Throws a service exception, if error messages have been added to the current request. -
Uses of ServiceException in com.sap.cds.services.messaging
Methods in com.sap.cds.services.messaging that return ServiceExceptionMethods in com.sap.cds.services.messaging with parameters of type ServiceExceptionModifier and TypeMethodDescriptionvoidMessagingErrorEventContext.setException(ServiceException exception) Sets theServiceExceptionthat was thrown while handling the message.