Table of Contents

Class Error

Namespace
GLib
Assembly
GLib-2.0.dll
public sealed class Error : BoxedRecord, IEquatable<Error>
Inheritance
Error
Implements
Inherited Members

Constructors

Error()

public Error()

Error(ErrorOwnedHandle)

public Error(ErrorOwnedHandle handle)

Parameters

handle ErrorOwnedHandle

Properties

Code

public int Code { get; set; }

Property Value

int

Handle

public ErrorOwnedHandle Handle { get; }

Property Value

ErrorOwnedHandle

Message

public string? Message { get; set; }

Property Value

string

Methods

Copy()

public Error Copy()

Returns

Error

Equals(Error?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(Error? other)

Parameters

other Error

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

Free()

public void Free()

GetGType()

public static Type GetGType()

Returns

Type

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Matches(Quark, int)

public bool Matches(Quark domain, int code)

Parameters

domain Quark
code int

Returns

bool

NewLiteral(Quark, int, string)

public static Error NewLiteral(Quark domain, int code, string message)

Parameters

domain Quark
code int
message string

Returns

Error

NewValist(Quark, int, string, IntPtr)

[Version("2.22")]
public static Error NewValist(Quark domain, int code, string format, IntPtr args)

Parameters

domain Quark
code int
format string
args IntPtr

Returns

Error