domainerror domain, e.g. G_FILE_ERROR
codeerror code, e.g. noent
messagehuman-readable informative error message
This function registers an extended <GError> domain.
error-type-name will be duplicated. Otherwise does the same as
error-domain-register-static.
Passed: a string.
string to create a GQuark from
Passed: an unsigned 64-bit integer.
size of the private error data in bytes
Passed: a procedure.
function initializing fields of the private error data
See GErrorInitFunc for how it is called.
Passed: a procedure.
function copying fields of the private error data
See GErrorCopyFunc for how it is called.
Passed: a procedure.
function freeing fields of the private error data
See GErrorClearFunc for how it is called.
Returned: an unsigned 32-bit integer.
GQuark representing the error domain
This function registers an extended <GError> domain.
error-type-name should not be freed. error-type-private-size must be greater than 0.
error-type-init receives an initialized
<GError> and should then initialize the private
data.
error-type-copy is a function that receives both original and a
copy <GError> and should copy the fields of the
private error data. The standard <GError> fields
are already handled.
error-type-clear receives the pointer to the error, and it should free the fields of the private error data. It should not free the struct itself though.
Normally, it is better to use G_DEFINE_EXTENDED_ERROR(), as it
already takes care of passing valid information to this function.
Passed: a string.
static string to create a GQuark from
Passed: an unsigned 64-bit integer.
size of the private error data in bytes
Passed: a procedure.
function initializing fields of the private error data
See GErrorInitFunc for how it is called.
Passed: a procedure.
function copying fields of the private error data
See GErrorCopyFunc for how it is called.
Passed: a procedure.
function freeing fields of the private error data
See GErrorClearFunc for how it is called.
Returned: an unsigned 32-bit integer.
GQuark representing the error domain
Returns #t if self matches domain and code,
#f otherwise. In particular, when self is #f,
#f will be returned.
If domain contains a FAILED (or otherwise generic) error
code, you should generally not check for it explicitly, but should
instead treat any not-explicitly-recognized error code as being
equivalent to the FAILED code. This way, if the domain is
extended in the future to provide a more specific error code for a
certain case, your code will still work.