Top Description Fields Constructors Methods
javax.websocket

public Class SessionException

extends Exception
Class Inheritance

A SessionException represents a general exception type reporting problems occurring on a websocket session.
Author
dannycoward

Field Summary

Modifier and TypeField and Description
private static final long
private final Session

Constructor Summary

AccessConstructor and Description
public
SessionException(String
a description of the problem
message
,
Throwable
the error that caused the problem
cause
,
Session
the session on which the problem occurred.
session
)

Creates a new instance of this exception with the given message, the wrapped cause of the exception and the session with which the problem is associated.

Method Summary

Modifier and TypeMethod and Description
public Session

Returns:

the session
getSession
()

Return the Session on which the problem occurred.

Field Detail

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

sessionback to summary
private final Session session

Constructor Detail

SessionExceptionback to summary
public SessionException(String message, Throwable cause, Session session)

Creates a new instance of this exception with the given message, the wrapped cause of the exception and the session with which the problem is associated.

Parameters
message:String

a description of the problem

cause:Throwable

the error that caused the problem

session:Session

the session on which the problem occurred.

Method Detail

getSessionback to summary
public Session getSession()

Return the Session on which the problem occurred.

Returns:Session

the session