public class StatelessPreRatingException extends OperationFailureException
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
StatelessPreRatingException() |
StatelessPreRatingException(int reason,
String message)
Constructs an exception with an error code and a message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCharacterData(String cData)
Adds character data to the content element.
|
void |
addChild(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.
|
String |
getMessage()
Returns the detailed message explaining why
the pre-rating failed.
|
static int |
getReason(String reasonString) |
static 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.
|
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic static final int UNKNOWN
public static final int NO_CONTEXT_FOR_CHARGE
StatelessRatingContext has been found in a
StatelessPreRatingContext for a given charge code.public static final int ILLEGAL_IMPLEMENTATION
public static final int UNEXPECTED_STATELESS_PRE_RATING_CONTEXT
update method
tries to update a context different from the context
used on the call that produced the result.public static final int STATELESS_PRE_RATING_CONTEXT_MISSING
StatelessServiceClient.statelessPreRate(StatelessRatingEvent, String, StatelessPreRatingContext, Date, long, long, boolean, boolean)
or
StatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem)
is called with a null StatelessPreRatingContextpublic static final int INVALID_RESOLUTION
StatelessServiceClient.statelessPostRate(long, StatelessPreRatingContext, int, boolean, ChargeableItem)
method.public static final int RESERVATION_UID_ALREADY_IN_STATELESS_PRE_RATING_CONTEXT
resolutionUID is
already used in a StatelessPreRatingContext.public static final int RESERVATION_UID_NOT_FOUND_IN_STATELESS_PRE_RATING_CONTEXT
reservationUID used
for post rating is not found.public static final int RESERVATION_UID_ALREADY_RESOLVED_IN_STATELESS_PRE_RATING_CONTEXT
reservationUID used for post
rating has already been post rated.public static final int INVALID_STATELESS_PRE_RATING_CONTEXT
StatelessPreRatingContext
has a invalid internal structure.public StatelessPreRatingException()
public StatelessPreRatingException(int reason,
String message)
reason - the reason.message - the message.public int getError()
public String getMessage()
getMessage in class Throwablepublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current elementpublic void addChild(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 addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic void marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic static final String getReasonString(int reason)
public static final int getReason(String reasonString)