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)
  {
    ......
 
   }

}

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....

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.