|
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.hci.OperationFailureErrorException
com.highdeal.hci.ServerErrorException
public class ServerErrorException
Exception thrown when a nonbusiness exception occurred in the connected SAP CC Core Server system; If such an exception occurs, it does not relate to a software bug in the SAP CC system (except for the "unsupportedFailure" reason that denotes a potential existing bug).
This marshallable exception is used to transform in a single common exception a large
set of internal exceptions (runtimes exception for most of them)
which can occur on server side. That the reason why
this exception manages a nested Throwable attribute which is initialized
with the original exception. But this nested exception is NEVER transmitted
to your client application. The Throwable class is the superclass of all errors and exceptions in the Java technology.
However, on server side, each time a server failure exception is
created from an internal exception, the SAP CC system always records the nested (internal) exception stack trace
into the logs or traces; this concerns also the generated ServerFailureException.
When your client application receives such an exception, it means that the initial operation request did not succeed and any change has been performed into the back-end database system. The database transaction has been rollbacked.
Use the method OperationFailureErrorException.getMessage() to retreive detail the message of the nested exception
if it exists.
ServerFailureException,
Serialized FormThe XML APIs specify the following XSD fragment:
| Field Summary | |
|---|---|
static java.lang.String |
TAG_NAME
The XML tag name of the XML representation: "serverError" |
| Fields inherited from class com.highdeal.hci.OperationFailureErrorException |
|---|
CAUSE_TAG_NAME, CAUSED_BY_TAG_NAME, MESSAGE_TAG_NAME |
| Constructor Summary | |
|---|---|
ServerErrorException()
Builds an empty exception. |
|
ServerErrorException(IError error)
Builds an exception with the error which has triggered it. |
|
ServerErrorException(IError error,
OperationFailureErrorException exception)
Builds an exception with an error and the OperationFailureErrorException which has triggered it. |
|
ServerErrorException(IError error,
java.lang.Throwable throwable)
Builds an exception with an error and the Throwable which has triggered it. |
|
| Method Summary | |
|---|---|
void |
addCharacterData(java.lang.String cData)
Adds character data to the content element. |
java.lang.String |
getTagName()
Gets the XML tag name of the HCI model. |
void |
marshalAttributes(XMLOutputter output)
Gives an XML representation of the attributes of an object. |
void |
setAttributes(XMLAttributes atts)
Sets the attributes of the XML representation of the element being processed. |
| Methods inherited from class com.highdeal.hci.OperationFailureErrorException |
|---|
addChild, getError, getMessage, marshal, marshalChildren, marshalIError, setError, unmarshalIError |
| 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 |
|---|
public static final java.lang.String TAG_NAME
| Constructor Detail |
|---|
public ServerErrorException()
public ServerErrorException(IError error)
error - The error which has triggered the exception
public ServerErrorException(IError error,
OperationFailureErrorException exception)
OperationFailureErrorException which has triggered it.
error - The error of the exceptionexception - The exception which has triggered the current one
public ServerErrorException(IError error,
java.lang.Throwable throwable)
Throwable which has triggered it.
error - The error of the exceptionthrowable - The throwable which has triggered the current one| Method Detail |
|---|
public 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 addedpublic java.lang.String getTagName()
OperationFailureErrorException
getTagName in class OperationFailureErrorExceptionpublic void marshalAttributes(XMLOutputter output)
IXMLMarshallable
output - The XML output to marshal the object attributes into
|
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 | ||||||||