Package com.highdeal.pnr.hci
Class ActivateException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.ActivateException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when the activation operation is requested with invalid
arguments.
See the available operations depending on the technical interface implemented in your SAP system landscape.
HCI:
Message TCP: Online Charging Services
StatefulServiceClient.activate(java.lang.String, java.lang.String, int, java.util.Date)acquire(..)(synchronous communications)AsyncStatefulServiceClient.activate(java.lang.String, java.lang.String, int, boolean, java.util.Date, com.highdeal.cnd.message.ActivateEventListener)(asynchronous communications)
- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="activateFault">
<xs:complexType>
<xs:attribute name="reason" type="ActivateFaultReasonType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element>
<xs:simpleType name="ActivateFaultReasonType">
<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="activationProcessAlreadyRunning"/>
<xs:enumeration value="notAuthorized"/>
<xs:enumeration value="invalidContext"/>
<xs:enumeration value="locked"/>
<xs:enumeration value="dispatcherCommunicationFailed"/>
<xs:enumeration value="reratingSessionRunning"/>
<xs:enumeration value="invalidChargingContractOid"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intConstant foractivationProcesssAlreadyRunningerror.static final intConstant fordispatcherCommunicationFailederror.static final int11: Constant forinvalidChargingContractOiderror.static final intConstant forinvalidContexterror.static final intConstant forinvalidResultTypeerror.static final intConstant forinvalidServiceProvidererror.static final int0: Constant forinvalidSubscriberAccountCodeerror.static final intConstant forinvalidSubscriptionOiderror.static final intConstant forinvalidToDateerror.static final intConstant forlockederror.static final intConstant fornotAuthorizederror.static final StringThe XML tag name of this exception: "activateFault"static final int10: Constant forreratingSessionRunningerror.static final int-1: Constant forunknownerror. -
Constructor Summary
ConstructorsConstructorDescriptionConstructs an empty exception.ActivateException(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.Gets the message for thisActivateException.intGets the reason of thisActivateException.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.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 of this exception: "activateFault"- 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_PROVIDERConstant forinvalidServiceProvidererror.- See Also:
-
INVALID_SUBSCRIPTION_OID
public static final int INVALID_SUBSCRIPTION_OIDConstant forinvalidSubscriptionOiderror.- See Also:
-
INVALID_TO_DATE
public static final int INVALID_TO_DATEConstant forinvalidToDateerror.- See Also:
-
INVALID_RESULT_TYPE
public static final int INVALID_RESULT_TYPEConstant forinvalidResultTypeerror.- See Also:
-
ACTIVATION_PROCESS_ALREADY_RUNNING
public static final int ACTIVATION_PROCESS_ALREADY_RUNNINGConstant foractivationProcesssAlreadyRunningerror. An activation process is still running.- See Also:
-
NOT_AUTHORIZED
public static final int NOT_AUTHORIZEDConstant fornotAuthorizederror.- See Also:
-
INVALID_CONTEXT
public static final int INVALID_CONTEXTConstant forinvalidContexterror.- See Also:
-
LOCKED
public static final int LOCKEDConstant forlockederror.- See Also:
-
DISPATCHER_COMMUNICATION_FAILED
public static final int DISPATCHER_COMMUNICATION_FAILEDConstant fordispatcherCommunicationFailederror.- See Also:
-
RERATING_SESSION_RUNNING
public static final int RERATING_SESSION_RUNNING10: Constant forreratingSessionRunningerror.- See Also:
-
INVALID_CHARGING_CONTRACT_OID
public static final int INVALID_CHARGING_CONTRACT_OID11: Constant forinvalidChargingContractOiderror.- See Also:
-
UNKNOWN
public static final int UNKNOWN-1: Constant forunknownerror.- See Also:
-
-
Constructor Details
-
ActivateException
public ActivateException()Constructs an empty exception. -
ActivateException
Constructs an exception with a message. It contains a human readable text.- Parameters:
reason- The reasonmessage- The message- See Also:
-
-
Method Details
-
getReason
public int getReason()Gets the reason of thisActivateException.- Returns:
- The reason of this exception
- See Also:
-
getMessage
Gets the message for thisActivateException.- Overrides:
getMessagein classThrowable- Returns:
- The message of this
ActivateException
-
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
-