I am handling an exception using catch block what will happen if there an error occur it in catch block while handling exception?

Questions by vishalsharma   answers by vishalsharma

Showing Answers 1 - 4 of 4 Answers

Mukesh Sonone

  • Jul 18th, 2007
 

Hi Vishal..
Since you are handling exceptions in catch block, if any error occurs that will get catch in catch{} block, but if you've furture coding done in catch{} block & if error occurs in the catch{} block, then this time no system error or runtime error will be sent as you are in catch{} block, & if you have Finally{} block also, then after this catch{} block error, directly your finally{} block will gets executed by deafult.
To catch the exception occured in your catch{} block you can write one more try{} catch{} block to catch that exception.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions