Error

class Error(pointer: <Error class: unknown class><<Error class: unknown class>>) : ProxyInstance

The GError structure contains information about an error that has occurred.

Skipped during bindings generation

  • constructor new: Varargs parameter is not supported

  • parameter args: va_list

  • parameter error_type_init: ErrorInitFunc

  • parameter error_type_init: ErrorInitFunc

Constructors

Link copied to clipboard
constructor(pointer: <Error class: unknown class><<Error class: unknown class>>)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
var code: <Error class: unknown class>

error code, e.g. %G_FILE_ERROR_NOENT

Link copied to clipboard
var domain: <Error class: unknown class>

error domain, e.g. %G_FILE_ERROR

Link copied to clipboard
val glibErrorPointer: <Error class: unknown class><<Error class: unknown class>>
Link copied to clipboard
open override val handle: <Error class: unknown class>?
Link copied to clipboard

human-readable informative error message

Functions

Link copied to clipboard
fun copy(): Error

Makes a copy of @error.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean

Compare two proxy instances for equality. This will compare both the type of the instances, and their memory addresses.

Link copied to clipboard
fun free()

Frees a #GError and associated resources.

Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
fun matches(domain: <Error class: unknown class>, code: <Error class: unknown class>): Boolean

Returns true if @error matches @domain and @code, false otherwise. In particular, when @error is null, false will be returned.

Link copied to clipboard
open override fun toString(): String