tag:blogger.com,1999:blog-2913369703414801920.post6457408315074436988..comments2023-07-01T07:45:54.461-07:00Comments on Konstantin's Blog: To throw or not to throwKonstantin Komissarchikhttp://www.blogger.com/profile/12487640637368516721noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-2913369703414801920.post-44021257310200175882013-06-28T09:20:41.824-07:002013-06-28T09:20:41.824-07:00Dennis, you are right, "this.exception != nul...Dennis, you are right, "this.exception != null" would be better. Thanks.Konstantin Komissarchikhttps://www.blogger.com/profile/12561088147653282903noreply@blogger.comtag:blogger.com,1999:blog-2913369703414801920.post-70100753649109728322013-06-28T04:51:48.473-07:002013-06-28T04:51:48.473-07:00We use convention for this:
find... means go sear...We use convention for this:<br /><br />find... means go search and possibly return a result<br />fetch... means we know it's there and fail if you can't retrieve it<br /><br />Similar is this: <br />http://docs.oracle.com/javaee/5/api/javax/persistence/Query.html#getSingleResult%28%29Kris Hofmanshttps://www.blogger.com/profile/06276691919928796455noreply@blogger.comtag:blogger.com,1999:blog-2913369703414801920.post-35769624128247343722013-06-27T21:59:21.222-07:002013-06-27T21:59:21.222-07:00"this.object == null"
should be
"t..."this.object == null"<br />should be <br />"this.exception != null" as null might be a valid return in same APIAnonymoushttps://www.blogger.com/profile/02290335354885293728noreply@blogger.com