A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Developer Certification (SCJD/OCMJD)
Questions about Exceptions Handling
Joined: Feb 17, 2006
Mar 21, 2006 09:26:00
1- Can I throw the same custom exception (say ServerInternalException) when
are thrown ?
2- How do I recover the
(Do I stop both Client and Server applications)?
3- same question for
4- Same question for the
5-When creating custom excptions, is it better to subclass from the
class or the Exception class
author and jackaroo
Joined: Mar 28, 2003
Mar 25, 2006 22:27:00
Before answering any of these questions, I think you need to ask yourself:
When will these exceptions be thrown?
Who will be throwing them?
What do I want to have happen in response to those events?
Once you have some answers to those questions, you may find that the questions you asked may be redundant, or may need to be reworded.
I know I haven't really answered your question, but it is deliberate - you
be a better programmer if you can sit down and work through this yourself.
Please do your thinking out loud (that is - as you think about the questions I have raised, feel free to put your thoughts in this post).
The Sun Certified Java Developer Exam with J2SE 5:
paper version from Amazon
PDF from Apress
, Online reference:
I agree. Here's the link:
subject: Questions about Exceptions Handling
Exception problem is bugging me!
Max Habibi - DBClient
RemoteDataInterface and DataInterface
Compiler do not complain in the interface-implementating class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015