Package com.highdeal.pnr.hci
Class StopRateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.StopRateException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
The exception for the
StopRateOp operation.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="stopRateFault">
<xs:complexType>
<xs:attribute name="reason" type="StopRateFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="StopRateFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidSessionID"/>
<xs:enumeration value="invalidResolution"/>
<xs:enumeration value="invalidResultType"/>
<xs:enumeration value="noSessionFound"/>
<xs:enumeration value="notEnoughSpace"/>
<xs:enumeration value="sessionNotAccessible"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe resolution code isn't a valid one.static final intthe result type isn't a valid one;static final intThe session isn't valid or missing for instance.static final intThe sessions isn't found.static final intThere isn't enough space on to store a session.static final intThe session is linked to an access different than those of the update operation. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty stop exception.StopRateException(int reason, String message) Constructs an stop exception with a reason and 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.getName()intGets the reason.voidmarshal(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.voidsetReason(int reason) Sets the reason.toString()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
-
Field Details
-
INVALID_SESSION_ID
public static final int INVALID_SESSION_IDThe session isn't valid or missing for instance.- See Also:
-
INVALID_RESOLUTION
public static final int INVALID_RESOLUTIONThe resolution code isn't a valid one.- See Also:
-
INVALID_RESULT_TYPE
public static final int INVALID_RESULT_TYPEthe result type isn't a valid one;- See Also:
-
NO_SESSION_FOUND
public static final int NO_SESSION_FOUNDThe sessions isn't found.- See Also:
-
NOT_ENOUGH_SPACE
public static final int NOT_ENOUGH_SPACEThere isn't enough space on to store a session.- See Also:
-
SESSION_NOT_ACCESSIBLE
public static final int SESSION_NOT_ACCESSIBLEThe session is linked to an access different than those of the update operation.- See Also:
-
-
Constructor Details
-
StopRateException
public StopRateException()Constructs an empty stop exception. -
StopRateException
Constructs an stop exception with a reason and a message.- Parameters:
reason- the reason.message- the message.
-
-
Method Details
-
getName
-
setReason
public void setReason(int reason) Sets the reason.- Parameters:
reason- the reason.
-
getReason
public int getReason()Gets the reason.- Returns:
- the reason.
-
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
-
toString
-