Re: Executing a line after which exception was thrown

From: ExGuardianReader (noway_at_noway.com)
Date: 06/13/04


Date: Sun, 13 Jun 2004 10:24:03 +0000 (UTC)

Amit wrote:
> A question i saw on 1 site
>
> Is there a wayto put the control back to line after which the
> exception occured
>
> e.g.
>
> try{
> ...
>
> a.method() //line 6
> a.doA() //line 7
>
> .. } (catch Exception e) {
> }
>
>
> Is it possible that an exception occured at line 6 and after catch i
> want to resume execution from line 7 ??

??

try
{
     a.method();
}
catch (TheMethodException e)
{
     //handle it in an appropriate way.
}
a.doA();



Relevant Pages