Re: throw the exception but continue the flow?
- From: Knute Johnson <nospam@xxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 30 Apr 2008 19:31:01 -0700
Steve wrote:
When it throws the exception, how to not stop the program but keep
continue?
When I get this exception, it stops and cannot continue.
Exception in thread "main" java.io.FileNotFoundException:
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown So
rce)
please help. thanks
try {
// put your code here that can throw the exception below in the
// catch part of this structure
} catch (FileNotFoundException e) {
// code here to clean up from your exception
}
// next sequential instruction
--
Knute Johnson
email s/nospam/linux/
--
Posted via NewsDemon.com - Premium Uncensored Newsgroup Service
------->>>>>>http://www.NewsDemon.com<<<<<<------
Unlimited Access, Anonymous Accounts, Uncensored Broadband Access
.
- References:
- throw the exception but continue the flow?
- From: Steve
- throw the exception but continue the flow?
- Prev by Date: Re: Declaring members for Interfaces
- Next by Date: Re: servlet annotations for URL mapping?
- Previous by thread: throw the exception but continue the flow?
- Next by thread: Re: throw the exception but continue the flow?
- Index(es):
Relevant Pages
|