类 SockJsTransportFailureException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.web.socket.sockjs.SockJsException
- org.springframework.web.socket.sockjs.SockJsTransportFailureException
- 所有已实现的接口:
Serializable
public class SockJsTransportFailureException extends SockJsException
Indicates a serious failure that occurred in the SockJS implementation as opposed to in user code (e.g. IOException while writing to the response). When this exception is raised, the SockJS session is typically closed.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 SockJsTransportFailureException(String message, String sessionId, Throwable cause)
Constructor for SockJsTransportFailureException.SockJsTransportFailureException(String message, Throwable cause)
Constructor for SockJsTransportFailureException.
方法概要
从类继承的方法 org.springframework.web.socket.sockjs.SockJsException
getSockJsSessionId
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
SockJsTransportFailureException
public SockJsTransportFailureException(String message, @Nullable Throwable cause)
Constructor for SockJsTransportFailureException.- 参数:
message
- the exception messagecause
- the root cause- 从以下版本开始:
- 4.1.7
SockJsTransportFailureException
public SockJsTransportFailureException(String message, String sessionId, @Nullable Throwable cause)
Constructor for SockJsTransportFailureException.- 参数:
message
- the exception messagesessionId
- the SockJS session idcause
- the root cause