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