Exception handling
- From: "Sharp Tool" <sharp.tool@xxxxxxxxxxxxxx>
- Date: Sun, 30 Oct 2005 10:31:44 GMT
Hi,
I want to check if a statement throws an exception.
If it does, I want to deal with it then and there, and not at the catch
claus.
See code below:
....
String[] str = {"dinner"};
if (str[1].charAt(0) throws ArrayIndexOutOfBoundsException) // compile error
{
//do something 1
}
else //do something 2
Is this possible?
Sharp Tool
.
- Follow-Ups:
- Re: Exception handling
- From: Malte
- Re: Exception handling
- From: Andrew McDonagh
- Re: Exception handling
- Prev by Date: Re: how i can extract text from the PDF files,power point files,Ms word files?
- Next by Date: Executing application on PC from cell phone
- Previous by thread: help request for sql select
- Next by thread: Re: Exception handling
- Index(es):
Relevant Pages
|