com.highdeal.pnr.hci
Class SessionOperationException

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.SessionOperationException
All Implemented Interfaces:
OperationResult, XMLMarshallable, java.io.Serializable

public final class SessionOperationException
extends OperationFailureException

Exception thrown when a session-based charging operation failed by charging session control; Your customized charging client should handle these types of exceptions internally. You implement the automated treatments in your client application.

Reasons

Implementation 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.

See Also:
Serialized Form

Nested Class Summary
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 Summary
SessionOperationException()
          Builds an empty exception.
SessionOperationException(SessionOperationException.SessionOperationErrorCategory category)
          Builds an exception by specifying an error category.
 
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.
 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.
 
Methods inherited from class com.highdeal.hci.OperationFailureException
getOperandReference
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionOperationException

public SessionOperationException()
Builds an empty exception.


SessionOperationException

public SessionOperationException(SessionOperationException.SessionOperationErrorCategory category)
Builds an exception by specifying an error category.

Parameters:
category - The category of this exception
Method Detail

getErrorCategory

public SessionOperationException.SessionOperationErrorCategory getErrorCategory()
Gets the error error category of this exception.

Returns:
The error category of this exception

setErrorCategory

public void setErrorCategory(SessionOperationException.SessionOperationErrorCategory category)
Sets the error category of this exception.

Parameters:
category - The error category of this exception

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

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

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

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

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