RPKI Engine
1.0
|
Public Member Functions | |
def | __init__ |
def | check_response |
def | endElement |
def | toXML |
Public Attributes | |
description | |
status | |
Static Public Attributes | |
dictionary | codes |
dictionary | exceptions |
Up-Down protocol "error_response" PDU.
Definition at line 517 of file up_down.py.
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.
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.
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().
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__().
dictionary rpki::up_down::error_response_pdu::codes [static] |
{ 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().
dictionary rpki::up_down::error_response_pdu::exceptions [static] |
{ 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().