javax.websocket.SessionException Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javax.websocket-client-api Show documentation
Show all versions of javax.websocket-client-api Show documentation
JSR 356: Java API for WebSocket
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package javax.websocket;
/**
* A SessionException represents a general exception type reporting problems
* occurring on a websocket session.
*
* @author dannycoward
*/
public class SessionException extends Exception {
private final Session session;
private static final long serialVersionUID = 014;
/**
* 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.
*
* @param message a description of the problem
* @param cause the error that caused the problem
* @param session the session on which the problem occurred.
*/
public SessionException(String message, Throwable cause, Session session) {
super(message, cause);
this.session = session;
}
/**
* Return the Session on which the problem occurred.
*
* @return the session
*/
public Session getSession() {
return this.session;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy