I asked a question about how to override the default Java Exception handling here and was told the answer here.
The question is now : is there a way to generify this
There is a method setDefaultUncaughtExceptionHandler in Thread
Thread