CapabilityProtocols & APIsNode.js, 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 Node.js applicability. View All CAP

Overview

SAP SHIPS
@sap/cds

Provides req.error and req.reject, and serialises the result into protocol-correct payloads with target paths.

SourceEvents and requestschecked

A Node.js coverage assessment has not been written. View all flavors

THE COMMUNITY ADDS

A Node.js coverage assessment has not been written. View all flavors

Artifacts2

2 of 2 artifacts
ArtifactSignals
CDS plugins1
cds-error-outboxCaptures CAP service errors, deduplicates them and mails alerts
Signals
Functional boundary
Packages1
@sap/cdsCAP Node.js runtime
Signals
none

Content1

Group by
Piece, what it offers
Don't "let it crash", is this the new CAP guideline?
SAP Community, Dinu, Blog
Don't "let it crash", is this the new CAP guideline?
SAP Community, Dinu, Blog

Details

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