Module cups :: Class HTTPError
[hide private]
[frames] | no frames]

Class HTTPError

              object --+        
                       |        
exceptions.BaseException --+    
                           |    
        exceptions.Exception --+
                               |
                              HTTPError

This exception is raised when an HTTP problem has occurred. It provides an integer HTTP status code.

Use it like this:

 try:
   ...
 except cups.HTTPError (status):
   print 'HTTP status is %d' % status
Instance Methods [hide private]

Inherited from exceptions.Exception: __init__, __new__

Inherited from exceptions.BaseException: __delattr__, __getattribute__, __getitem__, __getslice__, __reduce__, __repr__, __setattr__, __setstate__, __str__, __unicode__

Inherited from object: __format__, __hash__, __reduce_ex__, __sizeof__, __subclasshook__

Properties [hide private]

Inherited from exceptions.BaseException: args, message

Inherited from object: __class__