Is there a way to make Runnable's run() throw an exception?
A method I am calling in run() in a class that implements Runnable ) is designed to be throwing an exception. But the Java compiler won't let me do that and suggests that I surround it with try/catch. The problem is that by surrounding it with a try/catch I make that particular run() useless. I do want to throw that exception. If I specify throws for run() itself, the compiler complains that Exception is not compatible with throws clause in Runnable.run() . Ordinarily I'm totally fine with not letting run() throw an exception. But I have unique situation in which I must have that functionality