Error handling
Turning a failure into a response a client can act on — protocol-correct error payloads, correlation, and a boundary between internal detail and what a caller sees.
Showing artifacts, examples and content with confirmed Java applicability. View All CAP
Overview
com.sap.cds:cds-services-bom
Ships ServiceException for aborting an event with a mapped HTTP status and the Messages API for collecting errors, warnings, info and success messages on a request without aborting it, both usable without an extra dependency.
A Java coverage assessment has not been written. View all flavors
No community artifact is confirmed here for Java.
A Java coverage assessment has not been written. View all flavors
Artifacts
Seen working
ArtifactSignalsLast activity
Samples
cap-java-snippetscap-java-snippetsTen short CAP Java references, one per document: handler phases, CQN analysis, CQL, error handling, actions, authentication, logging, remote services, hybrid runs and the test layers.independent, cap
cap-java-snippets
Last pushLast commit
Details
Coverage
For your agent
- Ref
capability:error-handling- JSON
- /capabilities/error-handling.json
- MCP
- Connecting an agent