C++ | Exception Handling | Question 7
Inner Catch Outer Catch
(D) Compiler Error
Explanation: The statement ‘throw;’ is used to re-throw an exception. This is useful when a function can handles some part of the exception handling and then delegates the remaining part to the caller. A catch block cleans up resources of its function, and then rethrows the exception for handling elsewhere.
Quiz of this Question