Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URLyBird - How Robust?

 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ranchers,

How robust do we need to make the application?

My specific question relates to one of the Sun supplied interface methods that receives an array of strings to match against the strings in all the records in the DB.

If the number of strings passed does not match the number of values in the actual records should an exception be thrown?

The larger question is how much do we have to attempt to handle unexpected use of the interface?

Thanks,

Tom
 
Lucy Hummel
Ranch Hand
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Thomas,

Some opinions you can already found in the topic
Update Method, Validation, RuntimeException.

I throw java.lang.IllegalArgumentException in case the length is not as long as the count of attributes.

Furthermore, I do some checking on null values. I descoped the validation if there is a concurrency value when you try to set the price of something. I also do not check if a valid Date is inserted.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic