[SNMP4J] What about uncaught RuntimeExceptions?

Fabian Nart fabian.nart at ergon.ch
Mon Mar 27 18:32:59 CEST 2006


Hi,

wouldn't it be nice to wrap the ThreadPool.TaskManager's run-method-body 
with a piece of code like the following?

try {
   // here comes the method body as it is until now
} catch(RuntimeException re) {
   // do some logging
}

I think this way we can be sure that there is no RuntimeException that 
we never be aware of (Who knows where the UncaughtException() method of 
the ThreadGroup writes its output to...)

cheers, Fabian



More information about the SNMP4J mailing list