public class ActivateException extends OperationFailureException
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)
ChargingContractActivateOp,
ActivateAllOp,
StatefulServiceClient,
AsyncStatefulServiceClient,
ActivateEventListener,
Serialized FormThe 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>
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVATION_PROCESS_ALREADY_RUNNING
Constant for
activationProcesssAlreadyRunning error. |
static int |
DISPATCHER_COMMUNICATION_FAILED
Constant for
dispatcherCommunicationFailed error. |
static int |
INVALID_CHARGING_CONTRACT_OID
11: Constant for
invalidChargingContractOid error. |
static int |
INVALID_CONTEXT
Constant for
invalidContext error. |
static int |
INVALID_RESULT_TYPE
Constant for
invalidResultType error. |
static int |
INVALID_SERVICE_PROVIDER
Constant for
invalidServiceProvider error. |
static int |
INVALID_SUBSCRIBER_ACCOUNT_CODE
0: Constant for
invalidSubscriberAccountCode error. |
static int |
INVALID_SUBSCRIPTION_OID
Constant for
invalidSubscriptionOid error. |
static int |
INVALID_TO_DATE
Constant for
invalidToDate error. |
static int |
LOCKED
Constant for
locked error. |
static int |
NOT_AUTHORIZED
Constant for
notAuthorized error. |
static java.lang.String |
OPERATION_NAME
The XML tag name of this exception: "activateFault"
|
static int |
RERATING_SESSION_RUNNING
10: Constant for
reratingSessionRunning error. |
static int |
UNKNOWN
-1: Constant for
unknown error. |
| Constructor and Description |
|---|
ActivateException()
Constructs an empty exception.
|
ActivateException(int reason,
java.lang.String message)
Constructs an exception with a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element.
|
void |
addChild(java.lang.String tagName,
XMLMarshallable child)
Adds a child to the object, the
child representing
the marshallable object which must be added to the element. |
java.lang.String |
getMessage()
Gets the message for this
ActivateException. |
int |
getReason()
Gets the reason of this
ActivateException. |
void |
marshal(XMLOutputter output)
Gives an XML representation of this object, including its children.
|
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being
processed.
|
getOperandReferencepublic static final java.lang.String OPERATION_NAME
public static final int INVALID_SUBSCRIBER_ACCOUNT_CODE
invalidSubscriberAccountCode error.public static final int INVALID_SERVICE_PROVIDER
invalidServiceProvider error.public static final int INVALID_SUBSCRIPTION_OID
invalidSubscriptionOid error.public static final int INVALID_TO_DATE
invalidToDate error.public static final int INVALID_RESULT_TYPE
invalidResultType error.public static final int ACTIVATION_PROCESS_ALREADY_RUNNING
activationProcesssAlreadyRunning error. An
activation process is still running.public static final int NOT_AUTHORIZED
notAuthorized error.public static final int INVALID_CONTEXT
invalidContext error.public static final int LOCKED
locked error.public static final int DISPATCHER_COMMUNICATION_FAILED
dispatcherCommunicationFailed error.public static final int RERATING_SESSION_RUNNING
reratingSessionRunning error.public static final int INVALID_CHARGING_CONTRACT_OID
invalidChargingContractOid error.public static final int UNKNOWN
unknown error.public ActivateException()
public ActivateException(int reason,
java.lang.String message)
reason - The reasonmessage - The messageINVALID_SUBSCRIBER_ACCOUNT_CODE,
INVALID_SERVICE_PROVIDER,
INVALID_SUBSCRIPTION_OID,
INVALID_TO_DATE,
INVALID_RESULT_TYPE,
ACTIVATION_PROCESS_ALREADY_RUNNING,
NOT_AUTHORIZED,
INVALID_CONTEXT,
LOCKED,
DISPATCHER_COMMUNICATION_FAILED,
RERATING_SESSION_RUNNING,
INVALID_CHARGING_CONTRACT_OID,
UNKNOWNpublic int getReason()
ActivateException.INVALID_SUBSCRIBER_ACCOUNT_CODE,
INVALID_SERVICE_PROVIDER,
INVALID_SUBSCRIPTION_OID,
INVALID_TO_DATE,
INVALID_RESULT_TYPE,
ACTIVATION_PROCESS_ALREADY_RUNNING,
NOT_AUTHORIZED,
INVALID_CONTEXT,
LOCKED,
DISPATCHER_COMMUNICATION_FAILED,
RERATING_SESSION_RUNNING,
INVALID_CHARGING_CONTRACT_OID,
UNKNOWNpublic java.lang.String getMessage()
ActivateException.getMessage in class java.lang.ThrowableActivateExceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallablecData - The character data to be addedpublic void addChild(java.lang.String tagName,
XMLMarshallable child)
XMLMarshallablechild representing
the marshallable object which must be added to the element.tagName - The name of tag for the childchild - The child to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object into