Table of Contents

Class Error

Namespace
GLib.Internal
Assembly
GLib-2.0.dll
public class Error
Inheritance
Error
Inherited Members

Methods

Copy(ErrorHandle)

Calls native method g_error_copy.

public static extern ErrorOwnedHandle Copy(ErrorHandle error)

Parameters

error ErrorHandle

Transfer ownership: None Nullable: False

Returns

ErrorOwnedHandle

Transfer ownership: Full Nullable: False

DomainRegister(NonNullableUtf8StringHandle, nuint, ErrorInitFunc, ErrorCopyFunc, ErrorClearFunc)

Calls native function g_error_domain_register. Version: 2.68

[Version("2.68")]
public static extern uint DomainRegister(NonNullableUtf8StringHandle errorTypeName, nuint errorTypePrivateSize, ErrorInitFunc errorTypeInit, ErrorCopyFunc errorTypeCopy, ErrorClearFunc errorTypeClear)

Parameters

errorTypeName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

errorTypePrivateSize nuint

Transfer ownership: None Nullable: False

errorTypeInit ErrorInitFunc

Transfer ownership: None Nullable: False

errorTypeCopy ErrorCopyFunc

Transfer ownership: None Nullable: False

errorTypeClear ErrorClearFunc

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

DomainRegisterStatic(NonNullableUtf8StringHandle, nuint, ErrorInitFunc, ErrorCopyFunc, ErrorClearFunc)

Calls native function g_error_domain_register_static. Version: 2.68

[Version("2.68")]
public static extern uint DomainRegisterStatic(NonNullableUtf8StringHandle errorTypeName, nuint errorTypePrivateSize, ErrorInitFunc errorTypeInit, ErrorCopyFunc errorTypeCopy, ErrorClearFunc errorTypeClear)

Parameters

errorTypeName NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

errorTypePrivateSize nuint

Transfer ownership: None Nullable: False

errorTypeInit ErrorInitFunc

Transfer ownership: None Nullable: False

errorTypeCopy ErrorCopyFunc

Transfer ownership: None Nullable: False

errorTypeClear ErrorClearFunc

Transfer ownership: None Nullable: False

Returns

uint

Transfer ownership: None Nullable: False

Free(ErrorHandle)

Calls native method g_error_free.

public static extern void Free(ErrorHandle error)

Parameters

error ErrorHandle

Transfer ownership: None Nullable: False

GetGType()

Calls native function g_error_get_type.

public static extern nuint GetGType()

Returns

nuint

Transfer ownership: None Nullable: False

Matches(ErrorHandle, Quark, int)

Calls native method g_error_matches.

public static extern bool Matches(ErrorHandle error, Quark domain, int code)

Parameters

error ErrorHandle

Transfer ownership: None Nullable: True

domain Quark

Transfer ownership: None Nullable: False

code int

Transfer ownership: None Nullable: False

Returns

bool

Transfer ownership: None Nullable: False

NewLiteral(Quark, int, NonNullableUtf8StringHandle)

Calls native constructor g_error_new_literal.

public static extern ErrorOwnedHandle NewLiteral(Quark domain, int code, NonNullableUtf8StringHandle message)

Parameters

domain Quark

Transfer ownership: None Nullable: False

code int

Transfer ownership: None Nullable: False

message NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

Returns

ErrorOwnedHandle

Transfer ownership: Full Nullable: False

NewLiteralUnowned(uint, int, NonNullableUtf8StringHandle)

public static extern ErrorUnownedHandle NewLiteralUnowned(uint domain, int code, NonNullableUtf8StringHandle message)

Parameters

domain uint
code int
message NonNullableUtf8StringHandle

Returns

ErrorUnownedHandle

NewValist(Quark, int, NonNullableUtf8StringHandle, IntPtr)

Calls native constructor g_error_new_valist. Version: 2.22

[Version("2.22")]
public static extern ErrorOwnedHandle NewValist(Quark domain, int code, NonNullableUtf8StringHandle format, IntPtr args)

Parameters

domain Quark

Transfer ownership: None Nullable: False

code int

Transfer ownership: None Nullable: False

format NonNullableUtf8StringHandle

Transfer ownership: None Nullable: False

args IntPtr

Transfer ownership: None Nullable: False

Returns

ErrorOwnedHandle

Transfer ownership: Full Nullable: False