File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "Exception handling" Watch "Exception handling" New topic
Author

Exception handling

Cecilia Anderson
Greenhorn

Joined: Nov 11, 2001
Posts: 13
Hi!
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???
//Cecilia
Abhinav Anand
Ranch Hand

Joined: May 02, 2002
Posts: 113
Hi,
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..
Thanks,
Any suggetions are welcome.
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

Cecilia.
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
here.
Thanks and good luck on the assignment, we are all here for you.
Mark
[ May 06, 2002: Message edited by: Mark Spritzler ]

Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Exception handling
 
Similar Threads
is there EJB3 Exception handling framework?
PreparedStatement executeUpdate()
java [question -- exception handling]
error thrown in a constructor..
restarting java application