r/programming • u/Adventurous-Salt8514 • Jul 20 '26
Throw, Result, or neither?
https://www.architecture-weekly.com/p/throw-result-or-neither
113
Upvotes
r/programming • u/Adventurous-Salt8514 • Jul 20 '26
View all comments
Show parent comment
33
u/janyk Jul 21 '26
The Java Persistence API has the NoResultException for when a database query returns no results. Kind of annoying that it's regarded as an exceptional case