Scoop API

scoop:scoop.http:0.1.0

WebSocketHandshakeException

class WebSocketHandshakeException

source · line 12
public
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))

A handshake failure with its portable kind and optional field context.

property field

source · line 16
public
public val field: String? = None

get: public read-only

The handshake field involved, when known.

property detail

source · line 14
public
public val detail: String

get: public read-only

The protocol failure explanation.