Right now I just have a blank exception class. I was wondering how I can give it a variable when it gets raised and then retrieve that variable when I handle it in the try...exc
You can do this.
try: ex = ExampleException() ex.my_variable= "some value" raise ex except ExampleException, e: print( e.my_variable )
Works fine.