Exceptions in this module are coded as class instances:
- exception Error
The base exception class. Error has a single public data
member msg containing the description of the error.
- exception ConversionError
Class derived from Error. Contains no additional instance
Here is an example of how you would catch one of these exceptions:
See About this document... for information on suggesting changes.
p = xdrlib.Packer()
except xdrlib.ConversionError, instance:
print 'packing the double failed:', instance.msg