|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception anon.pay.xml.XMLErrorMessage
public class XMLErrorMessage
This class encapsulates an error or success message. In order to be indipendent from the HTTP protocol on the higher layer, this is now used instead of http errorcodes.
Field Summary | |
---|---|
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_OK
|
static int |
ERR_OUTDATED_CC
|
static int |
ERR_SUCCESS_BUT_WITH_ERRORS
|
static int |
ERR_WRONG_DATA
|
static int |
ERR_WRONG_FORMAT
|
private static java.lang.String[] |
m_errStrings
default error descriptions |
private int |
m_iErrorCode
|
private static java.lang.String[] |
m_messageObjectTypes
|
private IXMLEncodable |
m_oMessageObject
|
private java.lang.String |
m_strErrMsg
|
static java.lang.String |
XML_ELEMENT_NAME
|
Fields inherited from interface anon.util.IXMLEncodable |
---|
FIELD_XML_ELEMENT_CONTAINER_NAME, FIELD_XML_ELEMENT_NAME, XML_ATTR_ID, XML_ATTR_LANGUAGE, XML_ATTR_VERSION |
Constructor Summary | |
---|---|
XMLErrorMessage(org.w3c.dom.Document doc)
Parses an XMLErrorMessage object from DOM Document |
|
XMLErrorMessage(org.w3c.dom.Element element)
XMLErrorMessage |
|
XMLErrorMessage(int errorCode)
Uses a default description String |
|
XMLErrorMessage(int errorCode,
java.lang.String message)
Creates an errorMessage object. |
|
XMLErrorMessage(int errorCode,
java.lang.String message,
IXMLEncodable messageObject)
|
Method Summary | |
---|---|
int |
getErrorCode()
|
java.lang.String |
getErrorDescription()
|
java.lang.String |
getMessage()
|
IXMLEncodable |
getMessageObject()
getMessageObject: object corresponding to the message, may be null |
java.lang.Class |
getMessageObjectType()
|
void |
setMessageObject(IXMLEncodable a_messageObject)
|
private void |
setValues(org.w3c.dom.Element elemRoot)
|
org.w3c.dom.Element |
toXmlElement(org.w3c.dom.Document a_doc)
Return an element that can be appended to the document. |
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
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
private int m_iErrorCode
private java.lang.String m_strErrMsg
private IXMLEncodable m_oMessageObject
private static final java.lang.String[] m_errStrings
private static final java.lang.String[] m_messageObjectTypes
public static final java.lang.String XML_ELEMENT_NAME
Constructor Detail |
---|
public XMLErrorMessage(org.w3c.dom.Document doc) throws java.lang.Exception
document
- Document
java.lang.Exception
public XMLErrorMessage(org.w3c.dom.Element element) throws java.lang.Exception
element
- Element
java.lang.Exception
public XMLErrorMessage(int errorCode, java.lang.String message)
errorCode
- int one of the above constantsmessage
- String a human-readable description of the errorpublic XMLErrorMessage(int errorCode, java.lang.String message, IXMLEncodable messageObject)
public XMLErrorMessage(int errorCode)
errorCode
- intMethod Detail |
---|
public org.w3c.dom.Element toXmlElement(org.w3c.dom.Document a_doc)
IXMLEncodable
toXmlElement
in interface IXMLEncodable
a_doc
- a document
public java.lang.String getErrorDescription()
public int getErrorCode()
public java.lang.String getMessage()
getMessage
in class java.lang.Throwable
public IXMLEncodable getMessageObject()
public java.lang.Class getMessageObjectType()
public void setMessageObject(IXMLEncodable a_messageObject)
private void setValues(org.w3c.dom.Element elemRoot) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |