Throwing an exception to Main from a Class
<p>I am trying to write a stand alone Class that can be imported. As part of this I'd like to throw exceptions in my Class that can be caught and dealt with in the Main.  Is it possible to throw specific exceptions to Main for the user/developer to deal with?</p>

<p>I'm reasonable comfortable using the try: and except: in the Class and the Main to throw their own exceptions, it's getting the Class to pass a specific exception onto the Main that I can't work out. </p>

<p>Also, is it possible to some how set up the Python class so that it informs the user what exceptions they have to be able to catch to use my specific Class?</p>

<p>Thanks.</p>
