GtkAda Reference Manual - Package Glib.Error

[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Glib.Error

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

- Glib.Error Types
- Glib.Error Subprograms

## Types

    type GError is new C_Proxy;
    type GError_Access is access all GError;

## Subprograms

    function Error_New
      (Domain             :        GQuark;
       Code               :        Gint;
       Message            :        String)
       return GError;
| Create a new GError object.
    procedure Error_Free
      (Error              :        GError);
| Free the memory associated with a GError.
    function Error_Copy
      (Error              :        GError)
       return GError;
| Duplicate a GError object.
    function Error_Matches
      (Error              :        GError;
       Domain             :        GQuark;
       Code               :        Gint)
       return Boolean;
| Return whether a given GError matches a domain/code.
    function Get_Domain
      (Error              :        GError)
       return GQuark;
| Return the domain associated with a GError.
    function Get_Code
      (Error              :        GError)
       return Gint;
| Return the code associated with a GError.
    function Get_Message
      (Error              :        GError)
       return String;
| Return the message associated with a GError.

[Contents] [Back] [Prev] [Up] [Next] [Forward]