Top Description Fields Constructors Methods
org.springframework.web.socket.sockjs

public Class SockJsException

extends NestedRuntimeException
Class Inheritance
Known Direct Subclasses
org.springframework.web.socket.sockjs.SockJsMessageDeliveryException, org.springframework.web.socket.sockjs.SockJsTransportFailureException
Annotations
@SuppressWarnings:serial
Imports
org.springframework.core.NestedRuntimeException, org.springframework.lang.Nullable

Base class for exceptions raised while processing SockJS HTTP requests.
Author
Rossen Stoyanchev
Since
4.0

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public
SockJsException(String
the exception message
message
,
Throwable
the root cause
cause
)

Constructor for SockJsException.

public
SockJsException(String
the exception message
message
,
String
the SockJS session id
sessionId
,
Throwable
the root cause
cause
)

Constructor for SockJsException.

Method Summary

Modifier and TypeMethod and Description
public String
getSockJsSessionId()

Return the SockJS session id.

Inherited from org.springframework.core.NestedRuntimeException:
containsgetMostSpecificCausegetRootCause

Field Detail

sessionIdback to summary
private final String sessionId
Annotations
@Nullable

Constructor Detail

SockJsExceptionback to summary
public SockJsException(String message, Throwable cause)

Constructor for SockJsException.

Parameters
message:String

the exception message

cause:Throwable

the root cause

SockJsExceptionback to summary
public SockJsException(String message, String sessionId, Throwable cause)

Constructor for SockJsException.

Parameters
message:String

the exception message

sessionId:String

the SockJS session id

cause:Throwable

the root cause

Method Detail

getSockJsSessionIdback to summary
public String getSockJsSessionId()

Return the SockJS session id.

Annotations
@Nullable