Package com.highdeal.admin.hci
Class FetchChargingClientStatisticsException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.admin.hci.FetchChargingClientStatisticsException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
Exception thrown when an error occurs while retrieving the statistics of a charging client connected to the SAP CC Core Server system (see
the
Fetch Charging Client Statistics operation).- See Also:
XML API for HCI
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="fetchChargingClientStatisticsException">
<xs:complexType>
<xs:attribute name="message" type="xs:string" />
<xs:attribute name="reason" type="FetchChargingClientStatisticsExceptionReasonType" use="required"/>
<xs:attribute name="host" type="xs:string" />
<xs:attribute name="port" type="xs:integer" />
</xs:complexType>
</xs:element>
<xs:simpleType name="FetchChargingClientStatisticsExceptionReasonType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidHostname"/>
<xs:enumeration value="invalidPort"/>
<xs:enumeration value="unknownClient"/>
<xs:enumeration value="unknown"/>
</xs:restriction>
</xs:simpleType>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int0: Constant when the hostname specified in theFetchChargingClientStatisticsOpoperation is invalid.static final intThe port specified in theFetchChargingClientStatisticsOpoperation is invalid.static final StringThe name of the exception: "fetchChargingClientStatisticsException".static final intThe reason of the exception is unknown.static final intThe hostname and port specified in theFetchChargingClientStatisticsOpoperation do not correspond to a connected charging client. -
Constructor Summary
ConstructorsConstructorDescriptionCreates a fetch charging client statistics exception.FetchChargingClientStatisticsException(int reason, String message, String host, int port) Creates a fetch charging client statistics exception with 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.getHost()Gets the host of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.Gets the message of the exception.Gets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.intgetPort()Gets the port of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.intGets the reason of the exception.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.voidSets the host of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.voidsetMessage(String message) Sets the message of the exception.voidsetPort(int port) Sets the port of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.voidsetReason(int reason) Sets the reason of the exception.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_HOSTNAME
public static final int INVALID_HOSTNAME0: Constant when the hostname specified in theFetchChargingClientStatisticsOpoperation is invalid.- See Also:
-
INVALID_PORT
public static final int INVALID_PORTThe port specified in theFetchChargingClientStatisticsOpoperation is invalid.- See Also:
-
UNKNOWN_CLIENT
public static final int UNKNOWN_CLIENTThe hostname and port specified in theFetchChargingClientStatisticsOpoperation do not correspond to a connected charging client.- See Also:
-
UNKNOWN
public static final int UNKNOWNThe reason of the exception is unknown.- See Also:
-
TAG_NAME
The name of the exception: "fetchChargingClientStatisticsException".- See Also:
-
-
Constructor Details
-
FetchChargingClientStatisticsException
public FetchChargingClientStatisticsException()Creates a fetch charging client statistics exception. -
FetchChargingClientStatisticsException
Creates a fetch charging client statistics exception with a reason and a message.- Parameters:
reason- The reason of the exceptionmessage- The message of the exceptionhost- The host machine of the charging client as specified in theFetchChargingClientStatisticsOpoperationport- The communication port reserved for the charging client as specified in theFetchChargingClientStatisticsOpoperation
-
-
Method Details
-
getOperandReference
Description copied from interface:OperationResultGets the code or the reference (if no code exists) that identifies the operand of the operation request; If the operation is not auditable, the operand reference isnull.- Specified by:
getOperandReferencein interfaceOperationResult- Overrides:
getOperandReferencein classOperationFailureException- Returns:
- The operand reference of the operation result
-
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
-
getHost
Gets the host of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.- Returns:
- The host machine of the charging client as specified in the related
FetchChargingClientStatisticsOpoperation
-
setHost
Sets the host of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.- Parameters:
host- The host machine of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation
-
getPort
public int getPort()Gets the port of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.- Returns:
- the port of the charging client as specified in the related
FetchChargingClientStatisticsOpoperation
-
setPort
public void setPort(int port) Sets the port of the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation.- Parameters:
port- The communication port reserved for the charging client as specified in the relatedFetchChargingClientStatisticsOpoperation
-
getReason
public int getReason()Gets the reason of the exception.- Returns:
- The reason of the exception
- See Also:
-
setReason
public void setReason(int reason) Sets the reason of the exception.- Parameters:
reason- The reason of the exception- See Also:
-
getMessage
Gets the message of the exception.- Overrides:
getMessagein classThrowable- Returns:
- The text message of the exception
-
setMessage
Sets the message of the exception.- Parameters:
message- The text message of the exception
-