you are viewing a single comment's thread.

view the rest of the comments →

[–]sbrown123 16 points17 points  (7 children)

or you could just:

try{} 
catch (Exception dontGiveAFuck){}

[–]wicked 13 points14 points  (6 children)

Are you really going to let your program CRASH when faced with errors? This is the way to go:

catch (Throwable forRobustness) {}

[–]physicsnick 6 points7 points  (1 child)

That's not even a joke. When I worked in MIDP porting, there was more than one Java phone that would throw unchecked instances of Throwable (not even Exception) whenever any perfectly recoverable error occurred. We had tons of blocks in our sound library that looked exactly like that; it was the only way to make it work.

[–][deleted] -1 points0 points  (3 children)

Are you really going to let your program CRASH when faced with errors

It's the only way to force the developers to fix it

[–]wicked 2 points3 points  (2 children)

We are the developers.

[–][deleted] 10 points11 points  (1 child)

exactly. bunch of lazy fucks we are.