#1
5th December 2009, 07:20 PM
|
|||
|
|||
what happens to exception object after exception handling?
what will happen to exception object after exception handling? (C++)
|
#2
19th December 2009, 12:03 PM
|
|||
|
|||
Re: what happens to exception object after exception handling?
The catch clause resets object to the value null after correcting the exception situation. This can be done by calling a destructor which releases the memory occupied by it.
|
#3
31st January 2010, 10:51 PM
|
|||
|
|||
Re: what happens to exception object after exception handling?
hello
The catch clause resets object to the value null after correcting the exception situation. This can be done by calling a destructor which releases the memory occupied by it. best of luck |
#4
3rd February 2010, 11:27 AM
|
|||
|
|||
Re: what happens to exception object after exception handling?
Every data member inside your object should clean up its own mess.
If a constructor throws an exception, the object's destructor is not run. If your object has already done something that needs to be undone (such as allocating some memory, opening a file, or locking a semaphore), this "stuff that needs to be undone" must be remembered by a data member inside the object. |
#6
12th July 2010, 12:41 PM
|
|||
|
|||
Re: what happens to exception object after exception handling?
Hello friend,
The exception object is the main entity to show what kind of exception is occurring in the coding. After an exception is thrown, the JVM built default exception handler catches the exception and stops the execution of the program. When we use an exception handler, it handles the exception and the program runs after that. By the object of the Exception class which is the highest priority class,the particular exception is shown whether it is an arithmetic or array index out of bounds or I/O exception. I think your doubt has been a little cleared now. Good luck! |
#7
30th September 2011, 12:12 AM
|
|||
|
|||
Re: what happens to exception object after exception handling?
Hello friend,
The exception object is the main entity to show what kind of exception is occurring in the coding. After an exception is thrown, the JVM built default exception handler catches the exception and stops the execution of the program. When we use an exception handler, it handles the exception and the program runs after that. By the object of the Exception class which is the highest priority class,the particular exception is shown whether it is an arithmetic or array index out of bounds or I/O exception. I think your doubt has been a little cleared now. Good luck! |
#8
26th November 2011, 11:32 PM
|
|||
|
|||
Re: what happens to exception object after exception handling?
Hello friend,
The exception object is the main entity to show what kind of exception is occurring in the coding. After an exception is thrown, the JVM built default exception handler catches the exception and stops the execution of the program. When we use an exception handler, it handles the exception and the program runs after that. By the object of the Exception class which is the highest priority class,the particular exception is shown whether it is an arithmetic or array index out of bounds or I/O exception. I think your doubt has been a little cleared now. Good luck |
|