类 HandshakeFailureException
- java.lang.Object
- java.lang.Throwable
- java.lang.Exception
- java.lang.RuntimeException
- org.springframework.core.NestedRuntimeException
- org.springframework.web.socket.server.HandshakeFailureException
- 所有已实现的接口:
Serializable
public class HandshakeFailureException extends NestedRuntimeException
Thrown when handshake processing failed to complete due to an internal, unrecoverable error. This implies a server error (HTTP status code 500) as opposed to a failure in the handshake negotiation.By contrast, when handshake negotiation fails, the response status code will be 200 and the response headers and body will have been updated to reflect the cause for the failure. A
HandshakeHandler
implementation will have protected methods to customize updates to the response in those cases.- 从以下版本开始:
- 4.0
- 作者:
- Rossen Stoyanchev
- 另请参阅:
- 序列化表格
构造器概要
构造器 构造器 说明 HandshakeFailureException(String message)
HandshakeFailureException(String message, Throwable cause)
方法概要
从类继承的方法 org.springframework.core.NestedRuntimeException
contains, getMessage, getMostSpecificCause, getRootCause
构造器详细资料
HandshakeFailureException
public HandshakeFailureException(String message)
HandshakeFailureException
public HandshakeFailureException(String message, Throwable cause)