RPKI Engine  1.0
Public Member Functions | Public Attributes | Static Public Attributes
rpki::up_down::error_response_pdu Class Reference
Inheritance diagram for rpki::up_down::error_response_pdu:
Inheritance graph
Collaboration diagram for rpki::up_down::error_response_pdu:
Collaboration graph

List of all members.

Public Member Functions

def __init__
def check_response
def endElement
def toXML

Public Attributes

 description
 status

Static Public Attributes

dictionary codes
dictionary exceptions

Detailed Description

Up-Down protocol "error_response" PDU.

Definition at line 517 of file up_down.py.


Constructor & Destructor Documentation

def rpki::up_down::error_response_pdu::__init__ (   self,
  exception = None 
)
Initialize an error_response PDU from an exception object.

Definition at line 536 of file up_down.py.


Member Function Documentation

def rpki::up_down::error_response_pdu::check_response (   self)
Handle an error response.  For now, just raise an exception,
perhaps figure out something more clever to do later.

Reimplemented from rpki::up_down::base_elt.

Definition at line 576 of file up_down.py.

References codes, and status.

def rpki::up_down::error_response_pdu::endElement (   self,
  stack,
  name,
  text 
)
Handle "error_response" PDU.

Reimplemented from rpki::up_down::base_elt.

Definition at line 545 of file up_down.py.

References codes, description, and status.

Referenced by rpki::xml_utils::sax_handler::endElementNS().

Here is the caller graph for this function:

def rpki::up_down::error_response_pdu::toXML (   self)
Generate payload of "error_response" PDU.

Definition at line 561 of file up_down.py.

References codes, description, rpki::up_down::base_elt::make_elt(), rpki::xml_utils::base_elt::make_elt(), and status.

Referenced by rpki::xml_utils::base_elt::__str__(), rpki::xml_utils::msg::__str__(), and rpki::up_down::message_pdu::__str__().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Initial value:
{
    1101 : "Already processing request",
    1102 : "Version number error",
    1103 : "Unrecognised request type",
    1201 : "Request - no such resource class",
    1202 : "Request - no resources allocated in resource class",
    1203 : "Request - badly formed certificate request",
    1301 : "Revoke - no such resource class",
    1302 : "Revoke - no such key",
    2001 : "Internal Server Error - Request not performed" }

Definition at line 522 of file up_down.py.

Referenced by check_response(), endElement(), and toXML().

Definition at line 538 of file up_down.py.

Referenced by endElement(), and toXML().

Initial value:
{
    rpki.exceptions.NoActiveCA : 1202 }

Definition at line 533 of file up_down.py.

Definition at line 538 of file up_down.py.

Referenced by check_response(), endElement(), and toXML().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties