This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

urlyBird 1.2.3 - Exceptions

 
Payal Shah
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 759
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Jeffry,

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

Thank you.
Regards,

Payal
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic