public class SessionErrorEvent extends ApplicationEvent
ApplicationEvent
implementation to represent the
WebSocketSession
errors.source
Constructor and Description |
---|
SessionErrorEvent(Object source,
String sessionId,
Throwable exception)
Create a new
ApplicationEvent represented the error on the session. |
Modifier and Type | Method and Description |
---|---|
Throwable |
getException()
Return the exception for the session id.
|
String |
getSessionId()
Return the session id.
|
String |
toString() |
getTimestamp
getSource
public SessionErrorEvent(Object source, String sessionId, Throwable exception)
ApplicationEvent
represented the error on the session.source
- the component that published the event (never null
)sessionId
- the id of the sessionexception
- the exception on the sessionpublic String getSessionId()
public Throwable getException()
public String toString()
toString
in class EventObject