public class SessionErrorEvent
extends org.springframework.context.ApplicationEvent
ApplicationEvent
implementation to represent the
WebSocketSession
errors.Constructor and Description |
---|
SessionErrorEvent(java.lang.Object source,
java.lang.String sessionId,
java.lang.Throwable exception)
Create a new
ApplicationEvent represented the error on the session. |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
getException()
Return the exception for the session id.
|
java.lang.String |
getSessionId()
Return the session id.
|
java.lang.String |
toString() |
public SessionErrorEvent(java.lang.Object source, java.lang.String sessionId, java.lang.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 java.lang.String getSessionId()
public java.lang.Throwable getException()
public java.lang.String toString()
toString
in class java.util.EventObject