com.highdeal.pnr.hci
Class StatelessPreRatingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.highdeal.hci.OperationFailureException
              extended by com.highdeal.pnr.hci.StatelessPreRatingException
All Implemented Interfaces:
OperationResult, XMLMarshallable, java.io.Serializable

public class StatelessPreRatingException
extends OperationFailureException

See Also:
Serialized Form

Field Summary
static int ILLEGAL_IMPLEMENTATION
          Error 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 int INVALID_RESOLUTION
          Error indicating that an invalid resolution is used in StatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem) method.
static int INVALID_STATELESS_PRE_RATING_CONTEXT
          Error indicating that a StatelessPreRatingContext has a invalid internal structure.
static int NO_CONTEXT_FOR_CHARGE
          Error indicating that no embedded StatelessRatingContext has been found in a StatelessPreRatingContext for a given charge code.
static int RESERVATION_UID_ALREADY_IN_STATELESS_PRE_RATING_CONTEXT
          Error indicating that a given resolutionUID is already used in a StatelessPreRatingContext.
static int RESERVATION_UID_ALREADY_RESOLVED_IN_STATELESS_PRE_RATING_CONTEXT
          Error indicating that a reservationUID used for post rating has already been post rated.
static int RESERVATION_UID_NOT_FOUND_IN_STATELESS_PRE_RATING_CONTEXT
          Error indicating that a reservationUID used for post rating is not found.
static int STATELESS_PRE_RATING_CONTEXT_MISSING
          Error indicating that StatelessServiceClient.statelessPreRate(StatelessRatingEvent, String, StatelessPreRatingContext, Date, long, long, boolean, boolean) or StatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem) is called with a null StatelessPreRatingContext
static int UNEXPECTED_STATELESS_PRE_RATING_CONTEXT
          Error indicating that a result update method tries to update a context different from the context used on the call that produced the result.
static int UNKNOWN
          Unkown type of error.
 
Constructor Summary
StatelessPreRatingException()
           
StatelessPreRatingException(int reason, java.lang.String message)
          Constructs an exception with an error code and a message.
 
Method Summary
 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.
 int getError()
          Returns the reason why the pre-rating failed.
 java.lang.String getMessage()
          Returns the detailed message explaining why the pre-rating failed.
static int getReason(java.lang.String reasonString)
           
static java.lang.String getReasonString(int reason)
           
 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.
 
Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReference
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final int UNKNOWN
Unkown type of error. Means that the Exception has not been created using a valid code. Should not occur.

See Also:
Constant Field Values

NO_CONTEXT_FOR_CHARGE

public static final int NO_CONTEXT_FOR_CHARGE
Error indicating that no embedded StatelessRatingContext has been found in a StatelessPreRatingContext for a given charge code.

See Also:
Constant Field Values

ILLEGAL_IMPLEMENTATION

public static final int ILLEGAL_IMPLEMENTATION
Error 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:
Constant Field Values

UNEXPECTED_STATELESS_PRE_RATING_CONTEXT

public static final int UNEXPECTED_STATELESS_PRE_RATING_CONTEXT
Error indicating that a result update method tries to update a context different from the context used on the call that produced the result.

See Also:
Constant Field Values

STATELESS_PRE_RATING_CONTEXT_MISSING

public static final int STATELESS_PRE_RATING_CONTEXT_MISSING
Error indicating that StatelessServiceClient.statelessPreRate(StatelessRatingEvent, String, StatelessPreRatingContext, Date, long, long, boolean, boolean) or StatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem) is called with a null StatelessPreRatingContext

See Also:
Constant Field Values

INVALID_RESOLUTION

public static final int INVALID_RESOLUTION
Error indicating that an invalid resolution is used in StatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem) method.

See Also:
Constant Field Values

RESERVATION_UID_ALREADY_IN_STATELESS_PRE_RATING_CONTEXT

public static final int RESERVATION_UID_ALREADY_IN_STATELESS_PRE_RATING_CONTEXT
Error indicating that a given resolutionUID is already used in a StatelessPreRatingContext.

See Also:
Constant Field Values

RESERVATION_UID_NOT_FOUND_IN_STATELESS_PRE_RATING_CONTEXT

public static final int RESERVATION_UID_NOT_FOUND_IN_STATELESS_PRE_RATING_CONTEXT
Error indicating that a reservationUID used for post rating is not found.

See Also:
Constant Field Values

RESERVATION_UID_ALREADY_RESOLVED_IN_STATELESS_PRE_RATING_CONTEXT

public static final int RESERVATION_UID_ALREADY_RESOLVED_IN_STATELESS_PRE_RATING_CONTEXT
Error indicating that a reservationUID used for post rating has already been post rated.

See Also:
Constant Field Values

INVALID_STATELESS_PRE_RATING_CONTEXT

public static final int INVALID_STATELESS_PRE_RATING_CONTEXT
Error indicating that a StatelessPreRatingContext has a invalid internal structure.

See Also:
Constant Field Values
Constructor Detail

StatelessPreRatingException

public StatelessPreRatingException()

StatelessPreRatingException

public StatelessPreRatingException(int reason,
                                   java.lang.String message)
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 Detail

getError

public int getError()
Returns the reason why the pre-rating failed.

Returns:
the error code.

getMessage

public java.lang.String getMessage()
Returns the detailed message explaining why the pre-rating failed.

Overrides:
getMessage in class java.lang.Throwable
Returns:
the detailed message.

setAttributes

public void setAttributes(XMLAttributes atts)
Description copied from interface: XMLMarshallable
Sets the attributes of the XML representation of the element being processed.

Parameters:
atts - The XML attributes of the current element

addChild

public void addChild(java.lang.String tagName,
                     XMLMarshallable child)
Description copied from interface: XMLMarshallable
Adds a child to the object, the child representing the marshallable object which must be added to the element.

Parameters:
tagName - The name of tag for the child
child - The child to be added

addCharacterData

public void addCharacterData(java.lang.String cData)
Description copied from interface: XMLMarshallable
Adds character data to the content element.

Parameters:
cData - The character data to be added

marshal

public void marshal(XMLOutputter output)
Description copied from interface: XMLMarshallable
Gives an XML representation of this object, including its children.

Parameters:
output - The XML output to marshal the object into

getReasonString

public static final java.lang.String getReasonString(int reason)

getReason

public static final int getReason(java.lang.String reasonString)

Document Published: October 2015 (SAP CC 4.0 SP10 and Later)