Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within OCMJD
Search Coderanch
Advance search
Google search
Register / Login
Forums
Register
Login
Certification
»
Developer Certification (OCMJD)
find()-method and RecordNotFoundException
mohammad abdellatif
,
Greenhorn
Jul 29, 2011 01:15:47
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
DBMain.find method throws a RecordNotFoundException, Shall i through it to indicate no matched records are found, or shall I return an empty array.
Roel De Nijs
,
Sheriff
staff
Jul 29, 2011 02:28:38
(0 cow)
(0 skulls)
+Pie
Number of slices to send:
Send
mohammad abdellatif wrote:
Shall i through it to indicate no matched records are found
That's what I did. Others just returned an empty array. So both approaches are fine, don't forget to document your decision in choices.txt
Post by:
autobot
No holds barred. And no bars holed. Except this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
This thread has been viewed 846 times.
Similar Threads
[B&S] does update() need DuplicateKeyException
static method inside a abstract class?
implementing interface methods within another interface method
Javadoc: What to document if one exception is caught and another is throwed?
urlyBird 1.2.3 - findByCriteria method
More...
All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 10:34:21
.