Back to index

python3.2  3.2.2
Public Member Functions | Public Attributes
xmlrpc.client.ProtocolError Class Reference

Indicates an HTTP-level protocol error. More...

Inheritance diagram for xmlrpc.client.ProtocolError:
Inheritance graph
[legend]
Collaboration diagram for xmlrpc.client.ProtocolError:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def __init__
def __repr__
def __str__

Public Attributes

 url
 errcode
 errmsg
 headers

Detailed Description

Indicates an HTTP-level protocol error.

This is raised by the HTTP transport layer, if the server returns an error code other than 200 (OK).

Parameters:
urlThe target URL.
errcodeThe HTTP error code.
errmsgThe HTTP error message.
headersThe HTTP header dictionary.
Indicates an HTTP protocol error.

Definition at line 207 of file client.py.


Constructor & Destructor Documentation

def xmlrpc.client.ProtocolError.__init__ (   self,
  url,
  errcode,
  errmsg,
  headers 
)

Definition at line 209 of file client.py.

00209 
00210     def __init__(self, url, errcode, errmsg, headers):
00211         Error.__init__(self)
00212         self.url = url
00213         self.errcode = errcode
00214         self.errmsg = errmsg
        self.headers = headers

Here is the caller graph for this function:


Member Function Documentation

Definition at line 215 of file client.py.

00215 
00216     def __repr__(self):
00217         return (
00218             "<ProtocolError for %s: %s %s>" %
00219             (self.url, self.errcode, self.errmsg)
00220             )

def xmlrpc.client.Error.__str__ (   self) [inherited]

Definition at line 194 of file client.py.

00194 
00195     def __str__(self):
00196         return repr(self)


Member Data Documentation

Definition at line 212 of file client.py.

Definition at line 213 of file client.py.

Definition at line 214 of file client.py.

Definition at line 211 of file client.py.


The documentation for this class was generated from the following file: