• Post Reply Bookmark Topic Watch Topic
  • New Topic

Exceptions Handling without exiting the program  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a java program for a backup tool, when I try to backup something and the application tries to copy a file in use or that can't be read for other reason, it throws a FileNotFoundException.
What I am asking is, would it be possible to catch the exeption, print a message with the name of the file, but then keep on copying the remaining files?
Thanks a million for your help
 
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sure
 
Claudia Neri
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Great! Thanks a million
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!