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 urlyBird 1.2.3 - Exceptions 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 "urlyBird 1.2.3 - Exceptions" Watch "urlyBird 1.2.3 - Exceptions" New topic
Author

urlyBird 1.2.3 - Exceptions

Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
I have to implement DuplicateKeyException and RecordNotFoundException classes.

I am not sure I should extends them from Exception class (checked exception) or RuntimeException(unchekced exception)

How can you decide?

Thank you
Jeffry Kristianto Yanuar
Ranch Hand

Joined: Oct 01, 2007
Posts: 759
I think it should be Checked, because it will be append to the method header in the interface.

Good Luck !!!

Jeffry Kristianto Yanuar (Java Instructor) SCJP 5.0, SCJA, SCJD (UrlyBird 1.3.2)
Payal Shah
Ranch Hand

Joined: Jul 10, 2006
Posts: 67
Hi Jeffry,

Ya. I see your point. Thank you so much for clarifying that.

Thank you.
Regards,

Payal
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: urlyBird 1.2.3 - Exceptions
 
Similar Threads
Comparing Dates in jdbc
IAE or NPE?
Dan's mock question
how to solve class not found exception and data not insert in database