public final class SessionOperationException extends OperationFailureException
customized charging client should
handle these types of exceptions internally. You implement the automated treatments in your client application.
Your charging client must handle this type of exception internally.
The SAP CC system controls the reservationID set in the operation requests.
| Modifier and Type | Class and Description |
|---|---|
static class |
SessionOperationException.SessionOperationErrorCategory
This
enumeration provides the possible error reasons and categories that must be managed
when handling a session operation exceptions: SessionOperationException.SessionOperationErrorCategory.SESSION_ALREADY_EXISTS or
SessionOperationException.SessionOperationErrorCategory.SESSION_DOES_NOT_EXIST. |
| Constructor and Description |
|---|
SessionOperationException()
Builds an empty exception.
|
SessionOperationException(SessionOperationException.SessionOperationErrorCategory category)
Builds an exception by specifying an
error category. |
| 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. |
SessionOperationException.SessionOperationErrorCategory |
getErrorCategory()
Gets the error
error category of this exception. |
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 |
setErrorCategory(SessionOperationException.SessionOperationErrorCategory category)
Sets the
error category of this exception. |
getOperandReferenceaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic SessionOperationException()
public SessionOperationException(SessionOperationException.SessionOperationErrorCategory category)
error category.category - The category of this exceptionpublic SessionOperationException.SessionOperationErrorCategory getErrorCategory()
error category of this exception.public void setErrorCategory(SessionOperationException.SessionOperationErrorCategory category)
error category of this exception.category - The error category of this exceptionpublic void addCharacterData(String cData)
XMLMarshallablecData - The character data to be addedpublic 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 marshal(XMLOutputter output)
XMLMarshallableoutput - The XML output to marshal the object intopublic void setAttributes(XMLAttributes atts)
XMLMarshallableatts - The XML attributes of the current element