In my swig'd module I can easily throw an exception string or tuple, but
how do I throw an exception class?
I want to create a new exception type that is a class, create a class object
with some init data, then set the exception for the current thread to that
object.
Easy in Python, hard in C. How do I do it?
Thanks,
--
Brad Clements,
bkc@murkworks.com
how do I throw an exception class?
I want to create a new exception type that is a class, create a class object
with some init data, then set the exception for the current thread to that
object.
Easy in Python, hard in C. How do I do it?
Thanks,
--
Brad Clements,
bkc@murkworks.com