Glib.Error

Entities

Simple Types

Access Types

Subprograms

Description

This package provides definitions for the error handling mechanism used in Glib, Gdk and Gtk.

<c_version>1.3.11</c_version> <group>Glib, the general-purpose library</group>

Error_Copy

function Error_Copy (Error : GError) return GError

Duplicate a GError object.

Parameters
Error
Return Value

Error_Free

procedure Error_Free (Error : GError)

Free the memory associated with a GError.

Parameters
Error

Error_Matches

function Error_Matches
  (Error : GError; Domain : GQuark; Code : Gint) return Boolean

Return whether a given GError matches a domain/code.

Parameters
Error
Domain
Code
Return Value

Error_New

function Error_New
  (Domain : GQuark; Code : Gint; Message : String) return GError

Create a new GError object.

Parameters
Domain
Code
Message
Return Value

GError

type GError is new C_Proxy;

GError_Access

type GError_Access is access all GError;

Get_Code

function Get_Code (Error : GError) return Gint

Return the code associated with a GError.

Parameters
Error
Return Value

Get_Domain

function Get_Domain (Error : GError) return GQuark

Return the domain associated with a GError.

Parameters
Error
Return Value

Get_Message

function Get_Message (Error : GError) return String

Return the message associated with a GError.

Parameters
Error
Return Value