CapabilityProtocols & APIsJava, read from its artifacts

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

SAP SHIPS
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.

SourceIndicating Errorschecked

A Java coverage assessment has not been written. View all flavors

THE COMMUNITY ADDS

No community artifact is confirmed here for Java.

A Java coverage assessment has not been written. View all flavors

Artifacts1

1 of 1 artifacts
ArtifactSignals
Packages1
com.sap.cds:cds-services-bomMaven bill of materials pinning CAP Java module versions
Signals
none

Seen working1

ArtifactSignals
Samples1
cap-java-snippetsTen short CAP Java references, one document per topic
none

Details

Coverage
statecore only, CAP, Java, derived
also inABAP
For your agent
Ref
capability:error-handling
JSON
/capabilities/error-handling.json
MCP
Connecting an agent