Table of Contents

Struct OptionError

Namespace
GLib
Assembly
GLib-2.0.dll

Contains all error codes of the OptionError error-domain.

public readonly ref struct OptionError
Inherited Members

Constructors

OptionError(int)

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

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

public static Quark Any { get; }

Property Value

Quark

BadValue

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

public static OptionError BadValue { get; }

Property Value

OptionError

Failed

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

public static OptionError Failed { get; }

Property Value

OptionError

UnknownOption

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

public static OptionError UnknownOption { get; }

Property Value

OptionError

Operators

implicit operator ErrorCode(OptionError)

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

public static implicit operator ErrorCode(OptionError e)

Parameters

e OptionError

Returns

ErrorCode