Re: Exception handling
- From: Thomas Hawtin <usenet@xxxxxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 11:53:29 +0000
Sharp Tool wrote: >[Malte wrote:]
try { // whatever // do something 2 } catch (ArrayIndexOutOfBoundsException e) { // deal with it, ie do something 1 }
Like i said I don't want to deal with the exception in the catch claus. Doing so, will not return me to where I left off.
You want the exception to still be thrown?
try {
// whatever
// do something 2
} catch (ArrayIndexOutOfBoundsException exc) {
// do something 1
throw exc;
}However, you should rarely need to catch runtime exceptions. Much better to ensure what you are doing is valid before.
Tom Hawtin -- Unemployed English Java programmer http://jroller.com/page/tackline/ .
- References:
- Exception handling
- From: Sharp Tool
- Re: Exception handling
- From: Malte
- Re: Exception handling
- From: Sharp Tool
- Exception handling
- Prev by Date: Re: only one instance
- Next by Date: Re: JNI question: where is the 'jstring' defined?
- Previous by thread: Re: Exception handling
- Next by thread: Executing application on PC from cell phone
- Index(es):