Error

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

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

Skipped during bindings generation

  • 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 : RecordCompanion<Error, <Error class: unknown class>>

Properties

Link copied to clipboard
var code: Int

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

human-readable informative error message

Functions

Link copied to clipboard
fun copy(): Error

Makes a copy of @error.

Link copied to clipboard
fun free()

Frees a #GError and associated resources.

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

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