posted May 03, 2001 04:17 PM
--------------------------------------------------------------------------------
Hello,
the main ui class in my project calls a method that spawns several threads. I want to know if there is a way i can put a centralized catch so that all the exceptions are caught in this.
e.g MainUI.java
..
try{
//this method spawns several threads which may throw exceptions
ProjectManager.analyze();
}catch(Throwable t){
logError("Exception" + t + "in some
thread spawned by PM.analyze");
}
Thanks in advance,
Vivek