Description Details References See Also
GLib provides a standard method of reporting errors from a called function to the calling code. (This is the same problem solved by exceptions in other languages.)
As a transparent-type, a GError
is returned to the user as a list
with the following elements:
a numeric vector with one named element that identifies the error domain
an integer code (often an enum value) identifying the specific error type within the domain
a descriptive error message
The domain is usually retrived via a function of the form NAME\_OF\_DOMAIN\_ERROR().
For example, for GdkPixbuf
, the error domain is provided by GDK_PIXBUF_ERROR()
.
https://developer.gnome.org/glib/stable/glib-Error-Reporting.html
GdkPixbufError
GtkFileChooserError
GtkPrintError
GtkRecentChooserError
GtkRecentManagerError
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.