Package com.highdeal.pnr.hci
Class CannotInverseException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.CannotInverseException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when a rate cannot be inversed.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="cannotInverseFault">
<xs:complexType>
<xs:attribute name="reason" type="CannotInverseFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="CannotInverseFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidPrecision"/>
<xs:enumeration value="propertyMissing"/>
<xs:enumeration value="tooManyIterations"/>
<xs:enumeration value="negativeLimit"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant forinvalidPrecisionerror.static final intConstant fornegativeLimiterror.static final intConstant forpropertyMissingerror.static final intConstant fortooManyIterationserror. -
Constructor Summary
ConstructorsConstructorDescriptionCreates an empty exception.CannotInverseException(int reason, String message) Creates a newCannotInverseExceptionwith reason and 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.Gets the message for thisCannotInverseException.intGets the reason of thisCannotInverseException.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.voidsetMessage(String message) Sets the message for thisCannotInverseException.voidsetReason(int reason) Sets the reason of thisCannotInverseException.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_PRECISION
public static final int INVALID_PRECISIONConstant forinvalidPrecisionerror.- See Also:
-
PROPERTY_MISSING
public static final int PROPERTY_MISSINGConstant forpropertyMissingerror.- See Also:
-
TOO_MANY_ITERATIONS
public static final int TOO_MANY_ITERATIONSConstant fortooManyIterationserror.- See Also:
-
NEGATIVE_LIMIT
public static final int NEGATIVE_LIMITConstant fornegativeLimiterror.- See Also:
-
-
Constructor Details
-
CannotInverseException
public CannotInverseException()Creates an empty exception. -
CannotInverseException
Creates a newCannotInverseExceptionwith reason and message- Parameters:
reason- the reasonmessage- the additional message- See Also:
-
-
Method Details
-
setReason
public void setReason(int reason) Sets the reason of thisCannotInverseException.- Parameters:
reason- the reason of this Exception- See Also:
-
getReason
public int getReason()Gets the reason of thisCannotInverseException.- Returns:
- the reason of this Exception
- See Also:
-
setMessage
Sets the message for thisCannotInverseException.- Parameters:
message- the message for thisCannotInverseException
-
getMessage
Gets the message for thisCannotInverseException.- Overrides:
getMessagein classThrowable- Returns:
- the message of this
CannotInverseException
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data 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
-