Q: 7
Which method can you use to collect error messages with high severity and return them to the caller
in the request-response?
Options
Discussion
Makes sense to pick D for collecting and returning high-severity errors in one go. Pretty sure that's what SAP expects here.
Option D is right. req.error is for collecting multiple high-severity errors and sending them all back, not just failing on the first one like C (req.reject). Easy to mix those up if you go just by name. I think this is how SAP expects it to be handled, but open to discussion if someone has seen otherwise.
D , that's the standard way to handle multiple severe errors for SAP requests.
A isn’t it, D is the way to send multiple high severity errors back all at once. Pretty sure SAP leans this way. Disagree?
D imo. Similar cases show req.error is the preferred way, official materials back this up too.
I don't buy that C is right here. D.
C/D? Mock exams sometimes prefer D for collecting multiple errors, but C could fit if just stopping on one.
Not sure if C could fit if it's just a single critical error, but D makes more sense when you need to collect and return multiple high-severity errors. Anyone have SAP docs confirming?
Probably D, saw a similar question in an exam report and D was the right call.
D tbh. req.error is for aggregating and returning collected errors to the client, not just halting like C does. C is a common trap if you just remember "reject" means fail.
Be respectful. No spam.