I've got a class that generates threads (file i/o). I need to catch exceptions in the thread - I don't want to do anything fancy, I want to kill the main thread, rather, stop processing altogether so it can start over.
If I catch the exceptions in the thread, that's all good and well but the caller still proceeds, I want it to die.
I've had a few ideas but nothing is really getting me anywhere. What's the most succinct way to do this-CallBack, UnCaughtExceptionHandler? Something else? I am also relegated to Java 5