Package com.highdeal.pnr.hci
Class StatelessPreRatingException
java.lang.Object
java.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.StatelessPreRatingException
- All Implemented Interfaces:
OperationResult,XMLMarshallable,Serializable
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intError indicating that internal code detects that the API is used with an implementation of Interfaces or Abstract Classes that is not the SAP Convergent Charging proprietary implementation.static final intError indicating that an invalid resolution is used inStatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem)method.static final intError indicating that aStatelessPreRatingContexthas a invalid internal structure.static final intError indicating that no embeddedStatelessRatingContexthas been found in aStatelessPreRatingContextfor a given charge code.static final intError indicating that a givenresolutionUIDis already used in aStatelessPreRatingContext.static final intError indicating that areservationUIDused for post rating has already been post rated.static final intError indicating that areservationUIDused for post rating is not found.static final intError indicating thatStatelessServiceClient.statelessPreRate(StatelessRatingEvent, String, StatelessPreRatingContext, java.util.Date, long, long, boolean, boolean)orStatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem)is called with a null StatelessPreRatingContextstatic final intError indicating that a resultupdatemethod tries to update a context different from the context used on the call that produced the result.static final intUnkown type of error. -
Constructor Summary
ConstructorsConstructorDescriptionStatelessPreRatingException(int reason, String message) Constructs an exception with an error code 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.intgetError()Returns the reason why the pre-rating failed.Returns the detailed message explaining why the pre-rating failed.static final intstatic final StringgetReasonString(int reason) 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
-
UNKNOWN
public static final int UNKNOWNUnkown type of error. Means that the Exception has not been created using a valid code. Should not occur.- See Also:
-
NO_CONTEXT_FOR_CHARGE
public static final int NO_CONTEXT_FOR_CHARGEError indicating that no embeddedStatelessRatingContexthas been found in aStatelessPreRatingContextfor a given charge code.- See Also:
-
ILLEGAL_IMPLEMENTATION
public static final int ILLEGAL_IMPLEMENTATIONError indicating that internal code detects that the API is used with an implementation of Interfaces or Abstract Classes that is not the SAP Convergent Charging proprietary implementation.- See Also:
-
UNEXPECTED_STATELESS_PRE_RATING_CONTEXT
public static final int UNEXPECTED_STATELESS_PRE_RATING_CONTEXTError indicating that a resultupdatemethod tries to update a context different from the context used on the call that produced the result.- See Also:
-
STATELESS_PRE_RATING_CONTEXT_MISSING
public static final int STATELESS_PRE_RATING_CONTEXT_MISSINGError indicating thatStatelessServiceClient.statelessPreRate(StatelessRatingEvent, String, StatelessPreRatingContext, java.util.Date, long, long, boolean, boolean)orStatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem)is called with a null StatelessPreRatingContext- See Also:
-
INVALID_RESOLUTION
public static final int INVALID_RESOLUTIONError indicating that an invalid resolution is used inStatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem)method.- See Also:
-
RESERVATION_UID_ALREADY_IN_STATELESS_PRE_RATING_CONTEXT
public static final int RESERVATION_UID_ALREADY_IN_STATELESS_PRE_RATING_CONTEXTError indicating that a givenresolutionUIDis already used in aStatelessPreRatingContext.- See Also:
-
RESERVATION_UID_NOT_FOUND_IN_STATELESS_PRE_RATING_CONTEXT
public static final int RESERVATION_UID_NOT_FOUND_IN_STATELESS_PRE_RATING_CONTEXTError indicating that areservationUIDused for post rating is not found.- See Also:
-
RESERVATION_UID_ALREADY_RESOLVED_IN_STATELESS_PRE_RATING_CONTEXT
public static final int RESERVATION_UID_ALREADY_RESOLVED_IN_STATELESS_PRE_RATING_CONTEXTError indicating that areservationUIDused for post rating has already been post rated.- See Also:
-
INVALID_STATELESS_PRE_RATING_CONTEXT
public static final int INVALID_STATELESS_PRE_RATING_CONTEXTError indicating that aStatelessPreRatingContexthas a invalid internal structure.- See Also:
-
-
Constructor Details
-
StatelessPreRatingException
public StatelessPreRatingException() -
StatelessPreRatingException
Constructs an exception with an error code and a message. The message contains a human readable text.- Parameters:
reason- the reason.message- the message.
-
-
Method Details
-
getError
public int getError()Returns the reason why the pre-rating failed.- Returns:
- the error code.
-
getMessage
Returns the detailed message explaining why the pre-rating failed.- Overrides:
getMessagein classThrowable- Returns:
- the detailed message.
-
setAttributes
Description copied from interface:XMLMarshallableSets the attributes of the XML representation of the element being processed.- Parameters:
atts- TheXML attributesof the current element
-
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
-
addCharacterData
Description copied from interface:XMLMarshallableAdds character data to the content element.- Parameters:
cData- The character data 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
-
getReasonString
-
getReason
-