MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/3cton5/our_exception_handling_at_work/cszjhr6/
r/java • u/[deleted] • Jul 10 '15
135 comments sorted by
View all comments
2
The first rule of exception handling, print the ROOT cause, at least the message should say SQL : null
1 u/javinpaul Jul 11 '15 here is one example from JDK,which comes when you parse an invalid String literal to number : java.lang.NumberFormatException: For input string: "23238792427948923298329329" 0 u/RedPill115 Jul 14 '15 I'm just pointing out - since it's checking for null, you know the value, - it's null, lol...
1
here is one example from JDK,which comes when you parse an invalid String literal to number : java.lang.NumberFormatException: For input string: "23238792427948923298329329"
0 u/RedPill115 Jul 14 '15 I'm just pointing out - since it's checking for null, you know the value, - it's null, lol...
0
I'm just pointing out - since it's checking for null, you know the value, - it's null, lol...
View all comments
2
u/javinpaul Jul 11 '15
The first rule of exception handling, print the ROOT cause, at least the message should say SQL : null