โ† SAP questions
CodingReported in a candidate post, Aug 2017

Exception handling across classes

Filed under SAP

The question

Given two classes A and B, where B calls a method m1() from A, write code to handle an exception thrown by m1() within m2() and throw a new relevant exception.

No write-up yet. Related questions below have one.

Related SAP questions

Collected from public candidate posts and coding forums. Updated Nov 2026.