Exception Handling

catch statement is an Exception handler.
After handling the exception, it is supposed to resume normal execution,
but there is no return from catch to try block where we have our normal code.
How can we return from catch to normal code?
Hello anandchandan01,

Do you have any sample of your code? I would need to see to make any further suggestions.


Here is a tutorial that will help:
http://www.cplusplus.com/doc/tutorial/exceptions/
The code resumes normal execution from the point where the error was caught, not from where it was thrown. When an exception is thrown, the stack unwinds until it is caught, so there's no way you could continue from the point where it's thrown.
Topic archived. No new replies allowed.