code_junkie

When to catch java.lang.Error?

Nov 12th, 2011
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.13 KB | None | 0 0
  1. try {
  2. while (shouldRun()) {
  3. doSomething();
  4. }
  5. }
  6. catch (Throwable t) {
  7. log(t);
  8. stop();
  9. System.exit(1);
  10. }
Add Comment
Please, Sign In to add comment