Mixes for Privacy and Anonymity in the Internet
|
This class encapsulates an error or success message. More...
Public Member Functions | |
CAXMLErrorMessage (const UINT32 errorCode, UINT8 *message) | |
Creates an errorMessage object. More... | |
CAXMLErrorMessage (UINT32 errorCode) | |
Uses a default description String. More... | |
CAXMLErrorMessage (const UINT32 errorCode, UINT8 *message, CAAbstractXMLEncodable *messageObject) | |
attaches an object to the error message More... | |
CAXMLErrorMessage (UINT8 *strXmlData) | |
Parses the string XML representation. More... | |
CAXMLErrorMessage (DOMElement *elemRoot) | |
~CAXMLErrorMessage () | |
SINT32 | toXmlElement (XERCES_CPP_NAMESPACE::DOMDocument *a_doc, DOMElement *&elemRoot) |
Creates the XML structure inside an existing DOM_Document, but does not append it to any node. More... | |
UINT32 | getErrorCode () |
UINT8 * | getDescription () |
void * | getMessageObject () |
Public Member Functions inherited from CAAbstractXMLEncodable | |
CAAbstractXMLEncodable () | |
virtual | ~CAAbstractXMLEncodable () |
pure virtual destructor. More... | |
SINT32 | toXmlDocument (XERCES_CPP_NAMESPACE::DOMDocument *&pDoc) |
returns a pointer to the tagname of this XML structure's top level element. More... | |
UINT8 * | toXmlString (UINT32 *pSize) |
Converts the XML structure to a null-terminated C-String representation. More... | |
Private Member Functions | |
SINT32 | setValues (DOMElement *elemRoot) |
Private Attributes | |
UINT32 | m_iErrorCode |
UINT8 * | m_strErrMsg |
void * | m_messageObject |
This class encapsulates an error or success message.
In order to be independent from the HTTP protocol on the higher layer, this is now used instead of http errorcodes.
Creates an errorMessage object.
The errorcode should be one of the above ERR_* constants.
errorCode | UINT32 one of the above constants |
message | String a human-readable description of the error |
References m_iErrorCode, m_messageObject, and m_strErrMsg.
CAXMLErrorMessage::CAXMLErrorMessage | ( | UINT32 | errorCode | ) |
Uses a default description String.
errorCode | UINT32 |
References m_iErrorCode, m_messageObject, and m_strErrMsg.
CAXMLErrorMessage::CAXMLErrorMessage | ( | const UINT32 | errorCode, |
UINT8 * | message, | ||
CAAbstractXMLEncodable * | messageObject | ||
) |
attaches an object to the error message
References m_iErrorCode, m_messageObject, and m_strErrMsg.
CAXMLErrorMessage::CAXMLErrorMessage | ( | UINT8 * | strXmlData | ) |
Parses the string XML representation.
References E_SUCCESS, ERR_NO_ERROR_GIVEN, m_iErrorCode, m_messageObject, m_strErrMsg, parseDOMDocument(), and setValues().
CAXMLErrorMessage::CAXMLErrorMessage | ( | DOMElement * | elemRoot | ) |
References E_SUCCESS, ERR_NO_ERROR_GIVEN, m_iErrorCode, m_messageObject, m_strErrMsg, and setValues().
CAXMLErrorMessage::~CAXMLErrorMessage | ( | ) |
References m_messageObject, and m_strErrMsg.
UINT8* CAXMLErrorMessage::getDescription | ( | ) |
References m_strErrMsg.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
UINT32 CAXMLErrorMessage::getErrorCode | ( | ) |
References m_iErrorCode.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
void* CAXMLErrorMessage::getMessageObject | ( | ) |
References m_messageObject.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
|
private |
|
virtual |
Creates the XML structure inside an existing DOM_Document, but does not append it to any node.
a_doc | an existing DOM_Document |
elemRoot | on return contains the root element of the created XML structure. Note that the element is not appended to any node in the document |
Implements CAAbstractXMLEncodable.
References createDOMElement(), E_SUCCESS, m_iErrorCode, m_messageObject, m_strErrMsg, setDOMElementAttribute(), setDOMElementValue(), CAAbstractXMLEncodable::toXmlElement(), and XML_ELEMENT_ERROR_MSG.
|
static |
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::settlementTransaction(), and setValues().
|
static |
|
static |
|
static |
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
|
static |
|
static |
|
static |
|
static |
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::processJapMessageLoginHelper(), CAAccountingBIInterface::settleAll(), and CAAccountingInstance::settlementTransaction().
|
static |
|
static |
|
static |
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
|
static |
|
static |
|
static |
Referenced by CAAccountingInstance::finishLoginProcess().
|
static |
Referenced by CAAccountingInstance::handleJapPacket_internal().
|
static |
|
static |
|
static |
|
static |
Referenced by CAAccountingDBInterface::__getAccountStatus(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::processJapMessage(), CAAccountingInstance::processJapMessageLoginHelper(), and CAAccountingInstance::settlementTransaction().
|
static |
|
static |
|
static |
Referenced by CAAccountingInstance::handleCostConfirmation_internal().
|
static |
|
private |
Referenced by CAXMLErrorMessage(), getErrorCode(), setValues(), and toXmlElement().
|
private |
Referenced by CAXMLErrorMessage(), getMessageObject(), setValues(), toXmlElement(), and ~CAXMLErrorMessage().
|
private |
Referenced by CAXMLErrorMessage(), getDescription(), setValues(), toXmlElement(), and ~CAXMLErrorMessage().