You can replace an existing MULTI CATCH block by individual CATCH blocks for each exception separately.
Example
Before Execution | After Execution |
---|---|
To copy the source code example, click here Code Example Before Execution |
|
In the implementation of the drive method, a MULTI CATCH block handles the cx_no_fuel and cx_failure exceptions. You now want the exceptions to be handled differently in their own CATCH block. |
In the drive method, the MULTI CATCH block is divided into two new single CATCH blocks for each exception. |