Struct MarkupError
- Namespace
- GLib
- Assembly
- GLib-2.0.dll
Contains all error codes of the MarkupError error-domain.
public readonly ref struct MarkupError
- Inherited Members
Constructors
MarkupError(int)
Creates a new error in the MarkupError domain with a given error code.
public MarkupError(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 "MarkupError" error-domain.
public static Quark Any { get; }
Property Value
BadUtf8
Can be used to match a GException with the "BadUtf8" code (0).
public static MarkupError BadUtf8 { get; }
Property Value
Empty
Can be used to match a GException with the "Empty" code (1).
public static MarkupError Empty { get; }
Property Value
InvalidContent
Can be used to match a GException with the "InvalidContent" code (5).
public static MarkupError InvalidContent { get; }
Property Value
MissingAttribute
Can be used to match a GException with the "MissingAttribute" code (6).
public static MarkupError MissingAttribute { get; }
Property Value
Parse
Can be used to match a GException with the "Parse" code (2).
public static MarkupError Parse { get; }
Property Value
UnknownAttribute
Can be used to match a GException with the "UnknownAttribute" code (4).
public static MarkupError UnknownAttribute { get; }
Property Value
UnknownElement
Can be used to match a GException with the "UnknownElement" code (3).
public static MarkupError UnknownElement { get; }
Property Value
Operators
implicit operator ErrorCode(MarkupError)
Converts a MarkupError into a ErrorCode which can be used to match a GException.
public static implicit operator ErrorCode(MarkupError e)