public class PurgeAllowanceException extends OperationFailureException
Such service operation request may fail for several reasons:
Note
Refer to the Field Detail section for more information about a particular code and to determine the appropriate error handling in your client application.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="purgeAllowanceFault">
<xs:complexType>
<xs:attribute name="reason" type="PurgeAllowanceFaultReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="PurgeAllowanceFaultReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidToDate"/>
<xs:enumeration value="purgeProcessAlreadyRunning"/>
<xs:enumeration value="dispatcherCommunicationFailed"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
| Modifier and Type | Field and Description |
|---|---|
static int |
DISPATCHER_COMMUNICATION_FAILED
3: Constant for
dispatcherCommunicationFailed error. |
static int |
INVALID_TO_DATE
1: Constant for
invalidToDate error. |
static java.lang.String |
OPERATION_NAME
The XML tag name of this exception: "purgeAllowanceFault"
|
static int |
PURGE_ALLOWANCES_PROCESS_ALREADY_RUNNING
2: Constant for
purgeAllowanceProcesssAlreadyRunning error. |
static int |
UNKNOWN
-1: Constant for
unknown error. |
| Constructor and Description |
|---|
PurgeAllowanceException()
Constructs an empty exception.
|
PurgeAllowanceException(int reason,
java.lang.String message)
Constructs an exception with a message; It contains a human readable
text.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Gets the message for this
PurgeAllowanceException. |
int |
getReason()
Gets the reason of this
PurgeAllowanceException. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
getOperandReferencepublic static final java.lang.String OPERATION_NAME
public static final int INVALID_TO_DATE
invalidToDate error.public static final int PURGE_ALLOWANCES_PROCESS_ALREADY_RUNNING
purgeAllowanceProcesssAlreadyRunning error. An
purge allowance process is still running.public static final int DISPATCHER_COMMUNICATION_FAILED
dispatcherCommunicationFailed error.public static final int UNKNOWN
unknown error.public PurgeAllowanceException()
public PurgeAllowanceException(int reason,
java.lang.String message)
reason - The reasonmessage - The messageINVALID_TO_DATE,
PURGE_ALLOWANCES_PROCESS_ALREADY_RUNNING,
DISPATCHER_COMMUNICATION_FAILED,
UNKNOWNpublic int getReason()
PurgeAllowanceException.INVALID_TO_DATE,
PURGE_ALLOWANCES_PROCESS_ALREADY_RUNNING,
DISPATCHER_COMMUNICATION_FAILED,
UNKNOWNpublic java.lang.String getMessage()
PurgeAllowanceException.getMessage in class java.lang.ThrowablePurgeAllowanceExceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into