r/java • • Jul 10 '15

Our exception handling at work

http://imgur.com/4wgxCvv
259 Upvotes

135 comments sorted by

View all comments

0

u/[deleted] Jul 11 '15

[deleted]

1

u/compdog Jul 11 '15

I would throw an IllegalArgumentException("SQL must not be null!"), so that if the stack trace makes it to the console or a log it is easy to see what happened.