This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Soft Skills and have John Sonmez on-line!
See this thread for details.
The moose likes Developer Certification (SCJD/OCMJD) and the fly likes NX: When should I throw DuplicateKeyException? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Certification » Developer Certification (SCJD/OCMJD)
Bookmark "NX: When should I throw DuplicateKeyException?" Watch "NX: When should I throw DuplicateKeyException?" New topic
Author

NX: When should I throw DuplicateKeyException?

HaoZhe Xu
Ranch Hand

Joined: Nov 03, 2003
Posts: 222
In which method?


[url]Olnex.net[/url]
[SCJP 1.2, SCJD, SCWCD]
Manoj Gundawar
Ranch Hand

Joined: Nov 17, 2002
Posts: 169
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


Manoj<br />SCJP, SCJD, SCWCD, IBM WSAD.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: NX: When should I throw DuplicateKeyException?