It's not a secret anymore!
The moose likes Beginning Java and the fly likes How to continue after an Exception? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

How to continue after an Exception?

irshad ahmed

Joined: Jun 17, 2003
Posts: 8
Is it possible to continue a Java program after if it catches and deals with an exception?
For example, say I am processing 1000 records from a file, one at a time. If the 6th record causes a Java Exception, I want to be able to skip it and continue processing the remaining 994 records.
Is this possible with Java Exception handling? If so, how?
[ April 06, 2004: Message edited by: irshad ahmed ]
Jessica Sant

Joined: Oct 17, 2001
Posts: 4313

I'm glad you're trying to learn more about Java and how it can help you to deal with problems (and I think you're on the right track with Exception Handling). But please don't post the same thread in multiple forums. It's very confusing and wastes peoples time when they answer a question thats already been answered elsewhere.
I've left the thread open in the Java in General (intermediate) forum, in order to continue the discussion. You can find it here.

- Jess
Blog:KnitClimbJava | Twitter: jsant | Ravelry: wingedsheep
I agree. Here's the link:
subject: How to continue after an Exception?
It's not a secret anymore!