Q: 3
Which error is thrown by the CAP SDK for Node.js, when a CRUD operation violates the foreign key
constraints?
Options
Discussion
Option A but does the question specify if custom error handling was implemented in the service layer? That changes things.
B
B not A
Looks like A is correct for Node.js CAP SDK, since ABAP errors like B are specific to the ABAP environment. D is a trap, that's just for unique constraints not foreign keys. Seen similar in practice, pretty sure it's A.
Pretty sure it's B. That's the ABAP constraint error I've seen referenced before in some practice exams and guides, so it seems to fit if you're not doing pure Node.js. Open to other input if I missed something.
A
Hard to say, A, since that's the CAP SDK's built-in error for this in Node.js. B is ABAP specific, not used by the Node.js stack. Pretty sure about this unless they override defaults.
Feels like A. CX_SY_CONSTRAINT_VIOLATION is more ABAP, not Node.js CAP. B is a bit of a trap here.
Be respectful. No spam.