Package com.highdeal.pnr.hci
Class CleanupException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.CleanupException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown during the processing of a cleanup operation request in the connected SAP CC system;
The exception is registered in the
operation results.
The main reasons are:
-
The
invalidSubscriptionCodeerror occurs when the given code isnullor does not correspond to a subscription in the database. -
The
invalidResultTypeoccurs when the result type is unknown. -
The
invalidToDateerror occurs when the given date isnull. -
The
incompatibleCurrenciesoccurs when aggregating the total amounts of different currencies.
Note
Consult the field summary and the field details for the complete list of reasons and detailed information.
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="cleanupFault">
<xs:complexType>
<xs:attribute name="reason" type="CleanupFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="CleanupFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidSubscriberAccountCode"/>
<xs:enumeration value="invalidServiceProvider"/>
<xs:enumeration value="invalidSubscriptionOid"/>
<xs:enumeration value="invalidToDate"/>
<xs:enumeration value="invalidResultType"/>
<xs:enumeration value="incompatibleCurrencies"/>
<xs:enumeration value="cleanupProcessAlreadyRunning"/>
<xs:enumeration value="dispatcherCommunicationFailed"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int6: Constant forcleanupProcesssAlreadyRunningerror.static final int7: Constant fordispatcherCommunicationFailederrorstatic final int5: Constant forincompatibleCurrencieserrorstatic final int4: Constant forinvalidResultTypeerrorstatic final int1: Constant forinvalidServiceProvidererrorstatic final int0: Constant forinvalidSubscriberAccountCodeerrorstatic final int2: Constant forinvalidSubscriptionOiderrorstatic final int3: Constant forinvalidToDateerrorstatic final StringThe XML name: "cleanupFault"static final int-1: Constant forunknownerror -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.CleanupException(int reason, String message) Creates a newCleanupExceptionwith 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.Gets the recorded detailed message for thisCleanupException.intGets the recorded reason of thisCleanupExceptionfor further investigations.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) SAP CC sets up the message for thisCleanupException.voidsetReason(int reason) SAP CC sets up the reason of thisCleanupException.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
-
OPERATION_NAME
The XML name: "cleanupFault"- See Also:
-
INVALID_SUBSCRIBER_ACCOUNT_CODE
public static final int INVALID_SUBSCRIBER_ACCOUNT_CODE0: Constant forinvalidSubscriberAccountCodeerror- See Also:
-
INVALID_SERVICE_PROVIDER
public static final int INVALID_SERVICE_PROVIDER1: Constant forinvalidServiceProvidererror- See Also:
-
INVALID_SUBSCRIPTION_OID
public static final int INVALID_SUBSCRIPTION_OID2: Constant forinvalidSubscriptionOiderror- See Also:
-
INVALID_TO_DATE
public static final int INVALID_TO_DATE3: Constant forinvalidToDateerror- See Also:
-
INVALID_RESULT_TYPE
public static final int INVALID_RESULT_TYPE4: Constant forinvalidResultTypeerror- See Also:
-
INCOMPATIBLE_CURRENCIES
public static final int INCOMPATIBLE_CURRENCIES5: Constant forincompatibleCurrencieserror- See Also:
-
CLEANUP_PROCESS_ALREADY_RUNNING
public static final int CLEANUP_PROCESS_ALREADY_RUNNING6: Constant forcleanupProcesssAlreadyRunningerror. A cleanup process is still running.- See Also:
-
DISPATCHER_COMMUNICATION_FAILED
public static final int DISPATCHER_COMMUNICATION_FAILED7: Constant fordispatcherCommunicationFailederror- See Also:
-
UNKNOWN
public static final int UNKNOWN-1: Constant forunknownerror- See Also:
-
-
Constructor Details
-
CleanupException
public CleanupException()Constructs an empty exception. -
CleanupException
Creates a newCleanupExceptionwith a reason and a message.- Parameters:
reason- The reasonmessage- The additional message- See Also:
-
-
Method Details
-
setReason
public void setReason(int reason) SAP CC sets up the reason of thisCleanupException.- Parameters:
reason- The reason of thisCleanupException
-
getReason
public int getReason()Gets the recorded reason of thisCleanupExceptionfor further investigations.- Returns:
- The reason of this
CleanupException - See Also:
-
setMessage
SAP CC sets up the message for thisCleanupException.- Parameters:
message- The message for thisCleanupException
-
getMessage
Gets the recorded detailed message for thisCleanupException.- Overrides:
getMessagein classThrowable- Returns:
- The text message of this
CleanupException
-
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
-