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
errorCodeintA 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
BadHandshake
Can be used to match a GException with the "BadHandshake" code (2).
public static WebsocketError BadHandshake { get; }
Property Value
BadOrigin
Can be used to match a GException with the "BadOrigin" code (3).
public static WebsocketError BadOrigin { get; }
Property Value
Failed
Can be used to match a GException with the "Failed" code (0).
public static WebsocketError Failed { get; }
Property Value
NotWebsocket
Can be used to match a GException with the "NotWebsocket" code (1).
public static WebsocketError NotWebsocket { get; }
Property Value
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)