When a Python program raises an exception, is there a way the exception handler can identify the object in which the exception was raised?
If not, I believe I can find out by defining the exception class like this...
class FoobarException(Exception) :
def __init__(self,message,context) :
...
...and using it like this:
raise FoobarException("Something bad happened!", self)
I'd rather not have to pass "self" to every exception, though.