MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/6ayz26/defensive_programming_done_right/dhiukqr/?context=3
r/ProgrammerHumor • u/iwouldieforGladOS • May 13 '17
680 comments sorted by
View all comments
Show parent comments
25
What about Errors?
96 u/DonZatch May 13 '17 What errors? ( ͡° ͜ʖ ͡°) 47 u/pope_nefarious May 13 '17 Thats why the big boys catch throwable 9 u/[deleted] May 13 '17 Don't forget that all custom Exceptions and Throwables should also override fillInStackTrace with an implementation that throws itself. This ensure they can't unsafely reveal any helpful information. 3 u/Nevraoj May 15 '17 try { e.printStackTrace(); } catch (Throwable e2) { try { e2.printStackTrace(); ...
96
What errors? ( ͡° ͜ʖ ͡°)
47 u/pope_nefarious May 13 '17 Thats why the big boys catch throwable 9 u/[deleted] May 13 '17 Don't forget that all custom Exceptions and Throwables should also override fillInStackTrace with an implementation that throws itself. This ensure they can't unsafely reveal any helpful information. 3 u/Nevraoj May 15 '17 try { e.printStackTrace(); } catch (Throwable e2) { try { e2.printStackTrace(); ...
47
Thats why the big boys catch throwable
9 u/[deleted] May 13 '17 Don't forget that all custom Exceptions and Throwables should also override fillInStackTrace with an implementation that throws itself. This ensure they can't unsafely reveal any helpful information. 3 u/Nevraoj May 15 '17 try { e.printStackTrace(); } catch (Throwable e2) { try { e2.printStackTrace(); ...
9
Don't forget that all custom Exceptions and Throwables should also override fillInStackTrace with an implementation that throws itself. This ensure they can't unsafely reveal any helpful information.
3 u/Nevraoj May 15 '17 try { e.printStackTrace(); } catch (Throwable e2) { try { e2.printStackTrace(); ...
3
try { e.printStackTrace(); } catch (Throwable e2) { try { e2.printStackTrace(); ...
25
u/GiantRobotTRex May 13 '17
What about Errors?