• Post Reply Bookmark Topic Watch Topic
  • New Topic

question about the createRecord()

 
Jofer Chan
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,everyone:
the createRecord define follow:

does the array data contain field's value(name,location,specialties,size,rate,owner)?
how to throw DuplicateKeyException with the method?
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This question has been discussed by many people here.
Please refer to the post:
NX: DuplicateKeyException
It includes 3-4 more links about this topic.
In general, for my design, the system never throw DuplicateKeyException, as it is impossible to happen according to the user requirement, and the implemetation. I simply provide the exception class, document this fact.
Nick.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!