Java: Global Exception Handler

Viewed 44043

Is there a way to make a global exception-handler in Java. I want to use like this:

"When an exception is thrown somewhere in the WHOLE program, exit."

The handler may not catch exceptions thrown in a try-catch body.

Martijn

6 Answers
Related