class WebSocketHandshakeException
source · line 12public
public class WebSocketHandshakeException public constructor(
/** The protocol failure explanation. */
public val detail: String,
/** The handshake field involved, when known. */
public val field: String? = None,
/** The failure category; ordinary handshake failures are malformed. */
public val kind: WebSocketHandshakeFailureKind = WebSocketHandshakeFailureKind.Malformed
) : Exception(Some("WebSocket handshake: " + detail))
- Supertype
Exception - Inherited
val message: Option<String>· Exception - Inherited
fun printStackTrace(): Unit· Throwable
A handshake failure with its portable kind and optional field context.
constructor constructor
source · line 12public
constructor(public val detail: String, public val field: String? = None, public val kind: WebSocketHandshakeFailureKind = WebSocketHandshakeFailureKind.Malformed)
parameter detail
source · line 14public
public val detail: String
parameter field
source · line 16public
public val field: String? = None
parameter kind
source · line 18public
public val kind: WebSocketHandshakeFailureKind = WebSocketHandshakeFailureKind.Malformed
property field
source · line 16public
public val field: String? = None
get: public read-only
The handshake field involved, when known.
property detail
source · line 14public
public val detail: String
get: public read-only
The protocol failure explanation.
property kind
source · line 18public
public val kind: WebSocketHandshakeFailureKind = WebSocketHandshakeFailureKind.Malformed
get: public read-only
The failure category; ordinary handshake failures are malformed.