APPENDIX EGError Types
GLib provides a standard method for error propagation called GError
. In this appendix, you will find a complete list of the GError
domains, as of GTK+ 2.10, along with the error types that correspond to each domain.
The GError
structure provides three elements: the error domain, a message string, and an error code.
struct GError
{
GQuark domain;
gchar *message;
gint code;
};
Each error domain represents a group of similar error types. Example error domains include G_BOOKMARK_FILE_ERROR
, GDK_PIXBUF_ERROR
, and G_FILE_ERROR
. They are always named as <NAMESPACE>_<MODULE>_ERROR
, where the namespace is the library containing the function, and the module is the widget or object type.
The message
is a human-readable string ...
Get Foundations of GTK+ Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.