• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

RecordNotFound exception

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
People - in what circumstances have people used this exception?

For URLybird it is thrown in many methods such as deleteRecord and readRecord.

Like - why would throw this for a delete for instance? And a readRecord too for that matter?
 
Ranch Hand
Posts: 284
Netbeans IDE Firefox Browser Debian
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Donal,

in what circumstances have people used this exception?


My specs say that this exception MUST be thrown whenever the specified record does not exist or is marked as deleted.

why would throw this for a delete for instance? And a readRecord too for that matter?


I am not sure what are you meaning...
If you don't throw it, you are ignoring an explicit requirement, and you'll fail.
If you don't like the design you can always explain it in the choices.txt, but remember, this file will never be read if you rise an automatic failure.

Regards
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic