|
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. | |
| CAXMLErrorMessage (UINT32 errorCode) | |
| Uses a default description String. | |
| CAXMLErrorMessage (const UINT32 errorCode, UINT8 *message, CAAbstractXMLEncodable *messageObject) | |
| attaches an object to the error message | |
| CAXMLErrorMessage (UINT8 *strXmlData) | |
| Parses the string XML representation. | |
| 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. | |
| UINT32 | getErrorCode () |
| UINT8 * | getDescription () |
| void * | getMessageObject () |
Static Public Attributes | |
| static const UINT32 | ERR_OK = 0 |
| static const UINT32 | ERR_INTERNAL_SERVER_ERROR = 1 |
| static const UINT32 | ERR_WRONG_FORMAT = 2 |
| static const UINT32 | ERR_WRONG_DATA = 3 |
| static const UINT32 | ERR_KEY_NOT_FOUND = 4 |
| static const UINT32 | ERR_BAD_SIGNATURE = 5 |
| static const UINT32 | ERR_BAD_REQUEST = 6 |
| static const UINT32 | ERR_NO_ACCOUNTCERT = 7 |
| static const UINT32 | ERR_NO_BALANCE = 8 |
| static const UINT32 | ERR_NO_CONFIRMATION = 9 |
| static const UINT32 | ERR_ACCOUNT_EMPTY = 10 |
| static const UINT32 | ERR_CASCADE_LENGTH = 11 |
| static const UINT32 | ERR_DATABASE_ERROR = 12 |
| static const UINT32 | ERR_INSUFFICIENT_BALANCE = 13 |
| static const UINT32 | ERR_NO_FLATRATE_OFFERED = 14 |
| static const UINT32 | ERR_INVALID_CODE = 15 |
| static const UINT32 | ERR_OUTDATED_CC = 16 |
| static const UINT32 | ERR_INVALID_PRICE_CERT = 17 |
| static const UINT32 | ERR_MULTIPLE_LOGIN = 18 |
| static const UINT32 | ERR_NO_RECORD_FOUND = 19 |
| static const UINT32 | ERR_SUCCESS_BUT_WITH_ERRORS = 20 |
| static const UINT32 | ERR_BLOCKED = 21 |
| static const UINT32 | ERR_NO_ERROR_GIVEN = 100 |
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.
| CAXMLErrorMessage::CAXMLErrorMessage | ( | const UINT32 | errorCode, |
| UINT8 * | message | ||
| ) |
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().
References m_messageObject, and m_strErrMsg.
References m_strErrMsg.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
References m_iErrorCode.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
| void* CAXMLErrorMessage::getMessageObject | ( | ) |
References m_messageObject.
Referenced by CAAccountingInstance::__handleSettleResult(), and CAAccountingInstance::settlementTransaction().
| SINT32 CAXMLErrorMessage::setValues | ( | DOMElement * | elemRoot | ) | [private] |
References DOM_Output::dumpToMem(), DOM_Output::dumpToString(), E_SUCCESS, ERR_ACCOUNT_EMPTY, ERR_OUTDATED_CC, getDOMChildByName(), getDOMElementAttribute(), getDOMElementValue(), CAXMLCostConfirmation::getInstance(), len, m_iErrorCode, m_messageObject, m_strErrMsg, and CAMsg::printMsg().
Referenced by CAXMLErrorMessage().
| SINT32 CAXMLErrorMessage::toXmlElement | ( | XERCES_CPP_NAMESPACE::DOMDocument * | a_pDoc, |
| DOMElement *& | pElemRoot | ||
| ) | [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.
const UINT32 CAXMLErrorMessage::ERR_ACCOUNT_EMPTY = 10 [static] |
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::settlementTransaction(), and setValues().
const UINT32 CAXMLErrorMessage::ERR_BAD_REQUEST = 6 [static] |
const UINT32 CAXMLErrorMessage::ERR_BAD_SIGNATURE = 5 [static] |
const UINT32 CAXMLErrorMessage::ERR_BLOCKED = 21 [static] |
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::finishLoginProcess(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
const UINT32 CAXMLErrorMessage::ERR_CASCADE_LENGTH = 11 [static] |
const UINT32 CAXMLErrorMessage::ERR_DATABASE_ERROR = 12 [static] |
const UINT32 CAXMLErrorMessage::ERR_INSUFFICIENT_BALANCE = 13 [static] |
const UINT32 CAXMLErrorMessage::ERR_INTERNAL_SERVER_ERROR = 1 [static] |
Referenced by CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleCostConfirmation_internal(), CAAccountingInstance::handleJapPacket_internal(), CAAccountingInstance::processJapMessageLoginHelper(), CAAccountingBIInterface::settleAll(), and CAAccountingInstance::settlementTransaction().
const UINT32 CAXMLErrorMessage::ERR_INVALID_CODE = 15 [static] |
const UINT32 CAXMLErrorMessage::ERR_INVALID_PRICE_CERT = 17 [static] |
const UINT32 CAXMLErrorMessage::ERR_KEY_NOT_FOUND = 4 [static] |
Referenced by CAAccountingInstance::__commitSettlementToDatabase(), CAAccountingInstance::__handleSettleResult(), CAAccountingInstance::handleAccountCertificate_internal(), CAAccountingInstance::handleChallengeResponse_internal(), CAAccountingInstance::handleJapPacket_internal(), and CAAccountingInstance::settlementTransaction().
const UINT32 CAXMLErrorMessage::ERR_MULTIPLE_LOGIN = 18 [static] |
const UINT32 CAXMLErrorMessage::ERR_NO_ACCOUNTCERT = 7 [static] |
const UINT32 CAXMLErrorMessage::ERR_NO_BALANCE = 8 [static] |
Referenced by CAAccountingInstance::finishLoginProcess().
const UINT32 CAXMLErrorMessage::ERR_NO_CONFIRMATION = 9 [static] |
Referenced by CAAccountingInstance::handleJapPacket_internal().
const UINT32 CAXMLErrorMessage::ERR_NO_ERROR_GIVEN = 100 [static] |
const UINT32 CAXMLErrorMessage::ERR_NO_FLATRATE_OFFERED = 14 [static] |
const UINT32 CAXMLErrorMessage::ERR_NO_RECORD_FOUND = 19 [static] |
const UINT32 CAXMLErrorMessage::ERR_OK = 0 [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().
const UINT32 CAXMLErrorMessage::ERR_OUTDATED_CC = 16 [static] |
const UINT32 CAXMLErrorMessage::ERR_SUCCESS_BUT_WITH_ERRORS = 20 [static] |
const UINT32 CAXMLErrorMessage::ERR_WRONG_DATA = 3 [static] |
Referenced by CAAccountingInstance::handleCostConfirmation_internal().
const UINT32 CAXMLErrorMessage::ERR_WRONG_FORMAT = 2 [static] |
UINT32 CAXMLErrorMessage::m_iErrorCode [private] |
Referenced by CAXMLErrorMessage(), getErrorCode(), setValues(), and toXmlElement().
void* CAXMLErrorMessage::m_messageObject [private] |
Referenced by CAXMLErrorMessage(), getMessageObject(), setValues(), toXmlElement(), and ~CAXMLErrorMessage().
UINT8* CAXMLErrorMessage::m_strErrMsg [private] |
Referenced by CAXMLErrorMessage(), getDescription(), setValues(), toXmlElement(), and ~CAXMLErrorMessage().
1.7.6.1