Table of Contents

Struct WebsocketError

Namespace
Soup
Assembly
Soup-3.0.dll

Contains all error codes of the WebsocketError error-domain.

public readonly ref struct WebsocketError
Inherited Members

Constructors

WebsocketError(int)

Creates a new error in the WebsocketError domain with a given error code.

public WebsocketError(int errorCode)

Parameters

errorCode int

A specific error code of the domain

Properties

Any

Can be used to match a GException with any error code of the "WebsocketError" error-domain.

public static Quark Any { get; }

Property Value

Quark

BadHandshake

Can be used to match a GException with the "BadHandshake" code (2).

public static WebsocketError BadHandshake { get; }

Property Value

WebsocketError

BadOrigin

Can be used to match a GException with the "BadOrigin" code (3).

public static WebsocketError BadOrigin { get; }

Property Value

WebsocketError

Failed

Can be used to match a GException with the "Failed" code (0).

public static WebsocketError Failed { get; }

Property Value

WebsocketError

NotWebsocket

Can be used to match a GException with the "NotWebsocket" code (1).

public static WebsocketError NotWebsocket { get; }

Property Value

WebsocketError

Operators

implicit operator ErrorCode(WebsocketError)

Converts a WebsocketError into a ErrorCode which can be used to match a GException.

public static implicit operator ErrorCode(WebsocketError e)

Parameters

e WebsocketError

Returns

ErrorCode