Table of Contents

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

errorCode int

A 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

Quark

BadUtf8

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

public static MarkupError BadUtf8 { get; }

Property Value

MarkupError

Empty

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

public static MarkupError Empty { get; }

Property Value

MarkupError

InvalidContent

Can be used to match a GException with the "InvalidContent" code (5).

public static MarkupError InvalidContent { get; }

Property Value

MarkupError

MissingAttribute

Can be used to match a GException with the "MissingAttribute" code (6).

public static MarkupError MissingAttribute { get; }

Property Value

MarkupError

Parse

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

public static MarkupError Parse { get; }

Property Value

MarkupError

UnknownAttribute

Can be used to match a GException with the "UnknownAttribute" code (4).

public static MarkupError UnknownAttribute { get; }

Property Value

MarkupError

UnknownElement

Can be used to match a GException with the "UnknownElement" code (3).

public static MarkupError UnknownElement { get; }

Property Value

MarkupError

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)

Parameters

e MarkupError

Returns

ErrorCode