Package com.highdeal.pnr.hci
Class RerateBulkException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.RerateBulkException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when a rerating operation fails in the SAP CC system.
A rerating operation request may fail for several reasons:
ACTIVATION_PROCESS_RUNNINGBART_UNAVAILABLE: indicates that BART is not availableBULK_LOADERS_SYNC_FAILURE: indicates that the synchronization with the bulk loaders failedDOES_NOT_EXIST: used code does not existERROR_FILTER: indicates that this filter is not correctINVALID: rerate operation is invalidINCOMPATIBLE_FILTER: indicates that this filter is not compatible with reratingRERATE_PROCESS_ALREADY_RUNNING: indicates that the rerating already running
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.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="rerateBulkFault">
<xs:complexType>
<xs:attribute name="reason" type="RerateBulkFaultReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="RerateBulkFaultReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="doesNotExist"/>
<xs:enumeration value="invalid"/>
<xs:enumeration value="incompatibleFilter"/>
<xs:enumeration value="errorFilter"/>
<xs:enumeration value="rerateProcessAlreadyRunning"/>
<xs:enumeration value="bartUnavailable"/>
<xs:enumeration value="bulkLoadersSyncFailure"/>
<xs:enumeration value="activationProcessRunnning"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int7: Indicates that the Activation process is running.static final intIndicates that the SAP CC BART Server system is not available.static final int6: Indicates that the synchronization with the bulkloader instances failed.static final int0: Indicates that the used code does not exist.static final intIndicates that the specified filter is incorrect.static final intIndicates that the specified filter is not supported by the rerate operation.static final intIndicates that the rerate operation is invalid (from date is missing).static final intIndicates that a rerating is running. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.RerateBulkException(int reason, String message) Constructs an exception with a message; It contains a human readable text. -
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()Returns the name of the result, that is "rerateBulkFault".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
-
DOES_NOT_EXIST
public static final int DOES_NOT_EXIST0: Indicates that the used code does not exist.- See Also:
-
INVALID
public static final int INVALIDIndicates that the rerate operation is invalid (from date is missing). e.g. when required attribute is missing in the operation.- See Also:
-
INCOMPATIBLE_FILTER
public static final int INCOMPATIBLE_FILTERIndicates that the specified filter is not supported by the rerate operation.- See Also:
-
ERROR_FILTER
public static final int ERROR_FILTERIndicates that the specified filter is incorrect.- See Also:
-
RERATE_PROCESS_ALREADY_RUNNING
public static final int RERATE_PROCESS_ALREADY_RUNNINGIndicates that a rerating is running.- See Also:
-
BART_UNAVAILABLE
public static final int BART_UNAVAILABLEIndicates that the SAP CC BART Server system is not available.- See Also:
-
BULK_LOADERS_SYNC_FAILURE
public static final int BULK_LOADERS_SYNC_FAILURE6: Indicates that the synchronization with the bulkloader instances failed.- See Also:
-
ACTIVATION_PROCESS_RUNNING
public static final int ACTIVATION_PROCESS_RUNNING7: Indicates that the Activation process is running.- See Also:
-
-
Constructor Details
-
RerateBulkException
public RerateBulkException()Constructs an empty exception. -
RerateBulkException
Constructs an exception with a message; It contains a human readable text.- Parameters:
reason- The reasonmessage- The message
-
-
Method Details
-
getName
Returns the name of the result, that is "rerateBulkFault".- Returns:
- "rerateBulkFault"
-
getReason
public int getReason() -
getReasonCode
-
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
-