Re: Executing a line after which exception was thrown
From: ExGuardianReader (noway_at_noway.com)
Date: 06/13/04
- Next message: Michael Rauscher: "Re: Executing a line after which exception was thrown"
- Previous message: Oscar kind: "Re: ODBC access"
- In reply to: Amit: "Executing a line after which exception was thrown"
- Next in thread: Michael Rauscher: "Re: Executing a line after which exception was thrown"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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();
- Next message: Michael Rauscher: "Re: Executing a line after which exception was thrown"
- Previous message: Oscar kind: "Re: ODBC access"
- In reply to: Amit: "Executing a line after which exception was thrown"
- Next in thread: Michael Rauscher: "Re: Executing a line after which exception was thrown"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|