Possible Duplicate:
Java: Global Exception Handler
I thought of something like this:
public static void main(String[] args) {
try {
startOfMyProg();
} catch (RuntimeException e) {
log.error(e.toString());
// Maybe rethrow it so i can see it in the console?
}
}
It's a simple solution, i know. Maybe someone knows a better one?
regards && tia noircc