|
SAP Convergent Charging
Java and XML APIs (Core) |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.lang.Throwable
java.lang.Exception
com.highdeal.hci.OperationFailureException
com.highdeal.pnr.hci.PreRateException
public class PreRateException
Exception that may occur during a
PreRateOp execution.
This Exception has one of the reasons below:
invalidReservationUID error
occurs when the identifier is null.invalidTTL error is related to the ttl that can not be
negative.invalidDefaultResolution error occurs when the default
resolution passed into the PreRateOp is invalid
(null or unknown).invalidResultType occurs when the result type is unknown.
The XML APIs specify the following XSD fragment:
XSD Fragment
<xs:element name="preRateFault">
<xs:complexType>
<xs:attribute name="reason" type="PreRateFaultType"/>
<xs:attribute name="message" type="xs:string"/>
</xs:complexType>
</xs:element><xs:simpleType name="PreRateFaultType">
<xs:restriction base="xs:string">
<xs:enumeration value="invalidReservationUID"/>
<xs:enumeration value="invalidTTL"/>
<xs:enumeration value="invalidDefaultResolution"/>
<xs:enumeration value="invalidResultType"/>
</xs:restriction>
</xs:simpleType>
| Field Summary | |
|---|---|
static int |
INVALID_DEFAULT_RESOLUTION
Constant for invalidDefaultResolution error. |
static int |
INVALID_RESERVATION_UID
Constant for invalidReservationUID error. |
static int |
INVALID_RESULT_TYPE
Constant for invalidResultType error. |
static int |
INVALID_TTL
Constant for invalidTTL error. |
| Constructor Summary | |
|---|---|
PreRateException()
Constructs an empty exception. |
|
PreRateException(int reason,
java.lang.String message)
Creates a new PreRateException with reason and 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. |
java.lang.String |
getMessage()
Gets the message for this PreRateException. |
int |
getReason()
Gets the reason of this PreRateException. |
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. |
void |
setMessage(java.lang.String message)
Sets the message for this PreRateException. |
void |
setReason(int reason)
Sets the reason of this PreRateException. |
java.lang.String |
toString()
|
| 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int INVALID_RESERVATION_UID
invalidReservationUID error.
public static final int INVALID_TTL
invalidTTL error.
public static final int INVALID_DEFAULT_RESOLUTION
invalidDefaultResolution error.
public static final int INVALID_RESULT_TYPE
invalidResultType error.
| Constructor Detail |
|---|
public PreRateException()
public PreRateException(int reason,
java.lang.String message)
PreRateException with reason and message
reason - the reasonmessage - the additional messageINVALID_RESERVATION_UID,
INVALID_TTL,
INVALID_DEFAULT_RESOLUTION,
INVALID_RESULT_TYPE| Method Detail |
|---|
public void setReason(int reason)
PreRateException.
reason - the reason of this PreRateExceptionINVALID_RESERVATION_UID,
INVALID_TTL,
INVALID_DEFAULT_RESOLUTION,
INVALID_RESULT_TYPEpublic int getReason()
PreRateException.
PreRateExceptionINVALID_RESERVATION_UID,
INVALID_TTL,
INVALID_DEFAULT_RESOLUTION,
INVALID_RESULT_TYPEpublic void setMessage(java.lang.String message)
PreRateException.
message - the message for this PreRateExceptionpublic java.lang.String getMessage()
PreRateException.
getMessage in class java.lang.ThrowablePreRateExceptionpublic void setAttributes(XMLAttributes atts)
XMLMarshallable
atts - The XML attributes of the current elementpublic void addCharacterData(java.lang.String cData)
XMLMarshallable
cData - The character data to be added
public 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)
XMLMarshallable
output - The XML output to marshal the object intopublic java.lang.String toString()
toString in class java.lang.Throwable
|
Document Published: October 2015 (SAP CC 4.0 SP10 and Later) | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||