passing exceptions from a thread
could somebody tell me how to pass an exception from a thread to its parent class? like i want to do this.
class someClass {
void someMethod throws Exception () {
throw new Exception();
}
}
class anotherClass implements Runnable {
public void run () {
someClass s = new someClass();
s.someMethod();
}
}
its not gonna compile because i've got to try catch s.someMethod(). But i dont want to catch it just then, i want the error to pass to its parent class, which in my case is a gui class to display the error. anybody have ideas on how?