title: Should I throw a KeyNotFoundException for a database lookup?
body: <p>I've got some code that, given an ID, returns an item from the database. If no item matches the given ID, is it appropriate to throw a <a href="http://msdn.microsoft.com/en-us/library/system.collections.generic.keynotfoundexception%28v=vs.110%29.aspx" rel="nofollow"><code>KeyNotFoundException</code></a>, or are such exceptions meant only for Dictionary types?</p>