Sometimes when an exception is raised, we would want to continue with the processing after appropriate exception handling no matter where in the program stack the exception is handled. I like to call it a “Warning Exception” because just like a warning message popup, it allows you to continue with the program processing. Here, however, it allows you to handle the exception appropriately before resuming.
To do this we need to follow Class-based Exception Handling paradigm. When we define the exception handlers in a method, we need to define them as ‘RESUMABLE.’ Here are the steps:
Create an exception class
1. I created class ZCX_SS_DEMO_EXCEPTION |