Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
  • Piet Souris
  • Himai Minh

How to continue after an Exception?

Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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 ]
Posts: 4313
Android IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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.
Why should I lose weight? They make bigger overalls. And they sure don't make overalls for tiny ads:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
    Bookmark Topic Watch Topic
  • New Topic