com.sap.conn.jco.ext
Class SessionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.sap.conn.jco.JCoRuntimeException
                  extended by com.sap.conn.jco.ext.SessionException
All Implemented Interfaces:
java.io.Serializable

public class SessionException
extends JCoRuntimeException

A SessionException is supposed to be thrown by a SessionReferenceProvider in case of issues within session management for sessions that have been initiated by a JCoServer connection.

See Also:
Serialized Form

Nested Class Summary
static class SessionException.Type
          An enumeration for describing the situation when a SessionException is thrown.
 
Constructor Summary
SessionException(SessionException.Type type, java.lang.String message)
          Creates a new instance of a SessionException with the given type and message.
SessionException(SessionException.Type type, java.lang.String message, java.lang.Throwable causedBy)
          Creates a new instance of a SessionException with the given type, message and potentially a cause exception.
 
Method Summary
 
Methods inherited from class com.sap.conn.jco.JCoRuntimeException
getGroup, getKey, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SessionException

public SessionException(SessionException.Type type,
                        java.lang.String message,
                        java.lang.Throwable causedBy)
Creates a new instance of a SessionException with the given type, message and potentially a cause exception.

Parameters:
type - situation when exception is raised
message - exception message
causedBy - causing exception

SessionException

public SessionException(SessionException.Type type,
                        java.lang.String message)
Creates a new instance of a SessionException with the given type and message.

Parameters:
type - situation when exception is raised
message - exception message


Copyright © 2008-2014 SAP AG. All Rights Reserved.