File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes Exception handling Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Exception handling" Watch "Exception handling" New topic

Exception handling

Cecilia Anderson

Joined: Nov 11, 2001
Posts: 13
I�m wondering about how to handle system exceptions, like if you remove the db file .... should you inform the user and shut down the application. What are the requirements for exception handling???
Abhinav Anand
Ranch Hand

Joined: May 02, 2002
Posts: 113
If the db.db file is removed from the specified location before the server or client is started then I think that your program should inform the user either by displaying a message in the command window or by displaying a dialog box.
By the way if the db.db is in use by the server or the client then I don't think that the underlying OS would allow anybody to delete/move that concerned file as because it is in use.
Regarding exceptions the assignment instruction states that a certain amount of score is granted for exceptions so i think that one has to define a more generic and userfriendly error messages by using the exception handling mechanism.
Hope it helps..
Any suggetions are welcome.
Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Welcome to JavaRanch, and to the SCJD Forum. JavaRanch has a Naming Policy that requires first and last names.
Unfortunately I am at home right now, or this post would have a link for you to the policy and where you can change you name at.
You can change it
Thanks and good luck on the assignment, we are all here for you.
[ May 06, 2002: Message edited by: Mark Spritzler ]

Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Exception handling
jQuery in Action, 3rd edition