Class SessionException

java.lang.Object
java.lang.Throwable
java.lang.Exception
jakarta.websocket.SessionException
All Implemented Interfaces:
Serializable

public class SessionException extends Exception
Exception thrown when an error occurs on a WebSocket session.
See Also:
  • Constructor Details

    • SessionException

      public SessionException(String message, Throwable cause, Session session)
      Creates a SessionException with the specified detail message, cause, and session.
      Parameters:
      message - The detail message
      cause - The underlying cause of the exception
      session - The session on which the error occurred
  • Method Details

    • getSession

      public Session getSession()
      Returns the session on which the error occurred.
      Returns:
      The session