GNU Info

Info Node: (python2.1-lib.info)Exceptions

(python2.1-lib.info)Exceptions


Prev: Unpacker Objects Up: xdrlib
Enter node , (file) or (file)node

Exceptions
----------

Exceptions in this module are coded as class instances:

`Error'
     The base exception class.  `Error' has a single public data member
     `msg' containing the description of the error.

`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()
     try:
         p.pack_double(8.01)
     except xdrlib.ConversionError, instance:
         print 'packing the double failed:', instance.msg


automatically generated by info2www version 1.2.2.9