In Python 2.7.x, I've created an Exception class:
class myException(RuntimeError):
def __init__(self,arg):
self.args = arg
When I use it:
try:
raise myException("This is a test")
except myException as e:
print e
It prints out like this:
('T', 'h', 'i', 's', ' ', 'i', 's'...)
I didn't print the whole thing but why isn't this printing out as a string? And how do I convert it?
Also, why is e.message blank?
def __init__(self,*arg):(note the star)?