aspose file tools*
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
Author

How to continue after an Exception?

irshad ahmed
Greenhorn

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?
Thanks,
Irshad
[ April 06, 2004: Message edited by: irshad ahmed ]
Jessica Sant
Sheriff

Joined: Oct 17, 2001
Posts: 4313

Irshad-
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to continue after an Exception?