Package com.highdeal.admin.hci
Class ExpirationAlertException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.admin.hci.ExpirationAlertException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when the activation operation is invoked with invalid
arguments.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="expirationAlertFault">
<xs:complexType>
<xs:attribute name="reason" type="ExpirationAlertFaultReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="ExpirationAlertFaultReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidToDate"/>
<xs:enumeration value="processAlreadyRunning"/>
<xs:enumeration value="dispatcherCommunicationFailed"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int2: Constant fordispatcherCommunicationFailederrorstatic final int0: Constant forinvalidToDateerrorstatic final StringThe XML tag name: expirationAlertFaultstatic final int1: Constant foractivationProcesssAlreadyRunningerror.static final int-1: Constant forunknownerror -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.ExpirationAlertException(int reason, String message) Constructs an exception with a message. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCharacterData(String cData) Adds character data to the content element.voidaddChild(String tagName, XMLMarshallable child) Adds a child to the object, thechildrepresenting the marshallable object which must be added to the element.intvoidmarshal(XMLOutputter output) Gives an XML representation of this object, including its children.voidsetAttributes(XMLAttributes atts) Sets the attributes of the XML representation of the element being processed.Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReferenceMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
OPERATION_NAME
The XML tag name: expirationAlertFault- See Also:
-
INVALID_TO_DATE
public static final int INVALID_TO_DATE0: Constant forinvalidToDateerror- See Also:
-
PROCESS_ALREADY_RUNNING
public static final int PROCESS_ALREADY_RUNNING1: Constant foractivationProcesssAlreadyRunningerror. An activation process is still running.- See Also:
-
DISPATCHER_COMMUNICATION_FAILED
public static final int DISPATCHER_COMMUNICATION_FAILED2: Constant fordispatcherCommunicationFailederror- See Also:
-
UNKNOWN
public static final int UNKNOWN-1: Constant forunknownerror- See Also:
-
-
Constructor Details
-
ExpirationAlertException
public ExpirationAlertException()Constructs an empty exception. -
ExpirationAlertException
Constructs an exception with a message. It contains a comprehensive text.- Parameters:
reason- The reasonmessage- The message- See Also:
-
-
Method Details
-
getReason
public int getReason() -
getMessage
- Overrides:
getMessagein classThrowable
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data to be added
-
addChild
Description copied from interface:XMLMarshallableAdds a child to the object, thechildrepresenting the marshallable object which must be added to the element.- Parameters:
tagName- The name of tag for the childchild- The child to be added
-
marshal
Description copied from interface:XMLMarshallableGives an XML representation of this object, including its children.- Parameters:
output- TheXML outputto marshal the object into
-