Error

constructor(domain: <Error class: unknown class>, code: <Error class: unknown class>, message: String)(source)

Creates a new #GError; unlike g_error_new(), @message is not a printf()-style format string. Use this function if

Return

a new #GError

Parameters

domain

error domain

code

error code

message

error message


constructor()(source)

Allocate a new Error.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.


constructor(scope: <Error class: unknown class>)(source)

Allocate a new Error using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

scope

The AutofreeScope to allocate this structure in.


constructor(domain: <Error class: unknown class>, code: <Error class: unknown class>, message: String?)(source)

Allocate a new Error.

This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.

Parameters

domain

error domain, e.g. %G_FILE_ERROR

code

error code, e.g. %G_FILE_ERROR_NOENT

message

human-readable informative error message


constructor(    domain: <Error class: unknown class>,     code: <Error class: unknown class>,     message: String?,     scope: <Error class: unknown class>)(source)

Allocate a new Error using the provided AutofreeScope.

The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped.

Parameters

domain

error domain, e.g. %G_FILE_ERROR

code

error code, e.g. %G_FILE_ERROR_NOENT

message

human-readable informative error message

scope

The AutofreeScope to allocate this structure in.


constructor(glibErrorPointer: <Error class: unknown class><<Error class: unknown class>>)(source)