Table of Contents

Struct NetworkError

Namespace
WebKit
Assembly
WebKit-6.0.dll

Contains all error codes of the NetworkError error-domain.

public readonly ref struct NetworkError
Inherited Members

Constructors

NetworkError(int)

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

public NetworkError(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 "NetworkError" error-domain.

public static Quark Any { get; }

Property Value

Quark

Cancelled

Can be used to match a GException with the "Cancelled" code (302).

public static NetworkError Cancelled { get; }

Property Value

NetworkError

Failed

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

public static NetworkError Failed { get; }

Property Value

NetworkError

FileDoesNotExist

Can be used to match a GException with the "FileDoesNotExist" code (303).

public static NetworkError FileDoesNotExist { get; }

Property Value

NetworkError

Transport

Can be used to match a GException with the "Transport" code (300).

public static NetworkError Transport { get; }

Property Value

NetworkError

UnknownProtocol

Can be used to match a GException with the "UnknownProtocol" code (301).

public static NetworkError UnknownProtocol { get; }

Property Value

NetworkError

Operators

implicit operator ErrorCode(NetworkError)

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

public static implicit operator ErrorCode(NetworkError e)

Parameters

e NetworkError

Returns

ErrorCode