Website hosting service by

 Back to Index

12.17.3 Exceptions

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 variables.

Here is an example of how you would catch one of these exceptions:


import xdrlib
p = xdrlib.Packer()
except xdrlib.ConversionError, instance:
    print 'packing the double failed:', instance.msg




2002-2004 Webhosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to


Cheap domain registration : Register domain name or buy domain name, including free domain hosting services offers cheap domain registration, domain name transfer and domain search services    

Domain registration : Buy domain name or register domain name from $5.95/year only