<分区>
Possible Duplicate:
Java: Global Exception Handler
我想到了这样的事情:
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?
}
}
我知道这是一个简单的解决方案。也许有人知道更好的?
问候&&蒂亚 黑色