Java - general
From Java 5 on you can, by means of
Thread.setDefaultUncaughtExceptionHandler(...)
catch raw exceptions.