• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: When should I throw DuplicateKeyException?

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In which method?
 
Manoj Gundawar
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you have a create method, that's the place you will have to throw this exception. Check the interface provided by SUN. The Create method might be throwing this exception already.
Manoj
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic