you don't throw it to a specific class. in the method where the exception might be thrown, you can choose to either catch it there, or just re-throw it so that the method before it can choose to catch it or throw it. you know what a stack trace is? it's a chain of methods that were called to get to a certain point in execution, and if an exception is thrown somewhere, either the method in which it is thrown deals with it, or it passes it back to the preceeding method in the stack
why were you trying to throw it to a class?
Iam developed multithreaded socket... for each socket connection iam creating a execution thread and corresponding n number of servant thread.... if in case my execution thread died means i need to stop my servant thread.,thats why by throwing exception to servant thread class .. i need to knw how to do that....?if in case any of my servant thread died means i need to invoke the new child thread.....