[Tutor] exception classes

Gus Tabares gustabares at verizon.net
Fri Mar 12 14:15:37 EST 2004


Hello all,

I was wondering if it was possible for custom exception classes to have 
'property' attributes?  From what I understand, classes that use 
property attributes must subclass 'object', i.e.

    class MyClass(object)

and exception classes must subclass 'Exception', i.e.

    class MyClass(Exception)

I'm not really sure if it's possible or how it would be done. Any ideas 
are appreciated...

Thanks,
Gus



More information about the Tutor mailing list