public class XMLErrorMessage extends AnonServiceException implements IXMLEncodable
Modifier and Type | Field and Description |
---|---|
static int |
ERR_ACCOUNT_EMPTY |
static int |
ERR_BAD_REQUEST |
static int |
ERR_BAD_SIGNATURE |
static int |
ERR_BLOCKED |
static int |
ERR_CASCADE_LENGTH |
static int |
ERR_DATABASE_ERROR |
static int |
ERR_INSUFFICIENT_BALANCE |
static int |
ERR_INTERNAL_SERVER_ERROR |
static int |
ERR_INVALID_CODE |
static int |
ERR_INVALID_PRICE_CERTS |
static int |
ERR_KEY_NOT_FOUND |
static int |
ERR_MULTIPLE_LOGIN |
static int |
ERR_NO_ACCOUNTCERT |
static int |
ERR_NO_BALANCE |
static int |
ERR_NO_CONFIRMATION |
static int |
ERR_NO_FLATRATE_OFFERED |
static int |
ERR_NO_RECORD_FOUND |
static int |
ERR_NOT_SYNCHRONIZED |
static int |
ERR_OK |
static int |
ERR_OUTDATED_CC |
static int |
ERR_SUCCESS_BUT_WITH_ERRORS |
static int |
ERR_WRONG_DATA |
static int |
ERR_WRONG_FORMAT |
private PayAccount |
m_account |
private static java.lang.String[] |
m_errStrings
default error descriptions
|
private int |
m_iErrorCode |
private IXMLEncodable |
m_oMessageObject |
private static long |
serialVersionUID |
static java.lang.String |
XML_ELEMENT_NAME |
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION
Constructor and Description |
---|
XMLErrorMessage(org.w3c.dom.Document doc,
PayAccount a_account,
AnonServerDescription a_service)
Parses an XMLErrorMessage object from DOM Document
|
XMLErrorMessage(org.w3c.dom.Element element,
PayAccount a_account,
AnonServerDescription a_service) |
XMLErrorMessage(int errorCode) |
XMLErrorMessage(int errorCode,
AnonServerDescription a_service) |
XMLErrorMessage(int errorCode,
PayAccount a_account) |
XMLErrorMessage(int errorCode,
PayAccount a_account,
AnonServerDescription a_service)
Uses a default description String
|
XMLErrorMessage(int errorCode,
java.lang.String message) |
XMLErrorMessage(int errorCode,
java.lang.String message,
IXMLEncodable messageObject,
PayAccount a_account,
AnonServerDescription a_service) |
XMLErrorMessage(int errorCode,
java.lang.String message,
PayAccount a_account,
AnonServerDescription a_service)
Creates an errorMessage object.
|
Modifier and Type | Method and Description |
---|---|
PayAccount |
getAccount() |
long |
getAccountNumber() |
private static java.lang.String |
getMessage(int errorCode,
java.lang.String a_message) |
IXMLEncodable |
getMessageObject()
getMessageObject: object corresponding to the message, may be null
|
java.lang.String |
getPIID() |
int |
getXmlErrorCode() |
void |
setMessageObject(IXMLEncodable a_messageObject) |
private void |
setValues(org.w3c.dom.Element elemRoot,
PayAccount a_account) |
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document.
|
getErrorCode, getService
private static final long serialVersionUID
public static final int ERR_OK
public static final int ERR_INTERNAL_SERVER_ERROR
public static final int ERR_WRONG_FORMAT
public static final int ERR_WRONG_DATA
public static final int ERR_KEY_NOT_FOUND
public static final int ERR_BAD_SIGNATURE
public static final int ERR_BAD_REQUEST
public static final int ERR_NO_ACCOUNTCERT
public static final int ERR_NO_BALANCE
public static final int ERR_NO_CONFIRMATION
public static final int ERR_ACCOUNT_EMPTY
public static final int ERR_CASCADE_LENGTH
public static final int ERR_DATABASE_ERROR
public static final int ERR_INSUFFICIENT_BALANCE
public static final int ERR_NO_FLATRATE_OFFERED
public static final int ERR_INVALID_CODE
public static final int ERR_OUTDATED_CC
public static final int ERR_INVALID_PRICE_CERTS
public static final int ERR_MULTIPLE_LOGIN
public static final int ERR_NO_RECORD_FOUND
public static final int ERR_SUCCESS_BUT_WITH_ERRORS
public static final int ERR_BLOCKED
public static final int ERR_NOT_SYNCHRONIZED
private int m_iErrorCode
private IXMLEncodable m_oMessageObject
private PayAccount m_account
private static final java.lang.String[] m_errStrings
public static final java.lang.String XML_ELEMENT_NAME
public XMLErrorMessage(org.w3c.dom.Document doc, PayAccount a_account, AnonServerDescription a_service) throws java.lang.Exception
document
- Documentjava.lang.Exception
public XMLErrorMessage(org.w3c.dom.Element element, PayAccount a_account, AnonServerDescription a_service) throws java.lang.Exception
java.lang.Exception
public XMLErrorMessage(int errorCode, java.lang.String message)
public XMLErrorMessage(int errorCode)
public XMLErrorMessage(int errorCode, PayAccount a_account)
public XMLErrorMessage(int errorCode, java.lang.String message, PayAccount a_account, AnonServerDescription a_service)
errorCode
- int one of the above constantsmessage
- String a human-readable description of the errorpublic XMLErrorMessage(int errorCode, java.lang.String message, IXMLEncodable messageObject, PayAccount a_account, AnonServerDescription a_service)
public XMLErrorMessage(int errorCode, AnonServerDescription a_service)
public XMLErrorMessage(int errorCode, PayAccount a_account, AnonServerDescription a_service)
errorCode
- intprivate static java.lang.String getMessage(int errorCode, java.lang.String a_message)
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a documentpublic long getAccountNumber()
public PayAccount getAccount()
public java.lang.String getPIID()
public int getXmlErrorCode()
public IXMLEncodable getMessageObject()
public void setMessageObject(IXMLEncodable a_messageObject)
private void setValues(org.w3c.dom.Element elemRoot, PayAccount a_account) throws java.lang.Exception
java.lang.Exception
Copyright © 2023. All rights reserved.