Function
GLibErrornew
Declaration [src]
GError*
g_error_new (
GQuark domain,
gint code,
const gchar* format,
...
)
Description [src]
Creates a new GError
with the given domain
and code
,
and a message formatted with format
.
This function is not directly available to language bindings.
Parameters
domain
-
Type:
GQuark
Error domain.
code
-
Type:
gint
Error code.
format
-
Type:
const gchar*
Printf()-style format for error message.
The data is owned by the caller of the function. The value is a NUL terminated UTF-8 string. ...
-
Type:
Parameters for message format.
Return value
Type: GError
A new GError
.
The caller of the function takes ownership of the data, and is responsible for freeing it. |