Skip to content

Which failures deserve an exception

A findUser(id) method is called constantly, and about a third of the time the user does not exist. The author throws UserNotFoundException.

What is the objection?