Re: Exceptions no longer incur overhead?



void.no.spam.com@xxxxxxxxx wrote:

One of our classes has a method to look up an object. If the object
does not exist, it throws an exception to indicate that.

Just for clarity, a negative search is not an exceptional condition but
a permissible result, so it's probably better to return null.
.