954,496 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

problem - one catch block to other catch block of same try block

Suppose we have

main()
{
try{
while(error) 
throw 1st excep
} catch(1st  excep)
  {
if (condition)
we have to jump to  2nd excep
is it possible?
i am unable to send from this catch to next catch.
pls help me with codin/example..........? 
   }
  catch(2nd  excep)
  {
    ......
 
   }

}
mocherla14
Newbie Poster
1 post since Jan 2007
Reputation Points: 10
Solved Threads: 0
 

First of all use the code-tags when displaying source code !!!
Second use a try-catch in the catch from the first exception.
I hope this is what you mean....

disc
Light Poster
29 posts since Sep 2006
Reputation Points: 10
Solved Threads: 1
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You