• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

RecordNotFoundException in requirement

 
Tim Fernandez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

In the requiremet it says,
Any unimplemented exceptions in this interface must all be created as member classes of the suncertify.db package. Each must have a zero argument constructor and a second constructor that takes a String that serves as the exception's description.


If i were to follow this, then it would mean that i will not be able to use Exception chaining because my exception classes will only contain a constructor which does not have an argumeent and another constructor which only accepts a string.

regards,
tim
 
Eiji Seki
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so.

Each must have a zero argument constructor and a second constructor that takes a String that serves as the exception's description.


This states you MUST have the two constructors, but by my interpretation is does not restrain you from creating extra ones.
In order to do that, it would be necessary something like "only", "exactly two constructors", "no more than", etc.
 
Tim Fernandez
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Eiji,

I thought so too. I just wana make sure that you guys are also doing the same.

best regards,
tim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic