| Top |
| #define | GUM_ERROR |
| #define | GUM_GET_ERROR_FOR_ID() |
| #define | GUM_SET_ERROR() |
| #define | GUM_RETURN_WITH_ERROR() |
| GQuark | gum_error_quark () |
| GError * | gum_error_new_from_variant () |
| GVariant * | gum_error_to_variant () |
This file provides Gum error definitions and utilities. When creating an error, use GUM_ERROR for the error domain and errors from GumError for the error code.
GError* err = g_error_new(GUM_ERROR, GUM_ERROR_USER_ALREADY_EXISTS,
"User already exists");
#define GUM_ERROR (gum_error_quark())
This macro should be used when creating a GError (for example with
g_error_new()).
#define GUM_GET_ERROR_FOR_ID(code, message, args...)
A helper macro that creates a GError with the proper gum domain
code |
A GumError specifying the error |
|
message |
Format string for the error message |
|
... |
parameters for the error string |
#define GUM_SET_ERROR(code, err_str, err, retvar, retval)
A helper macro that creates a GError with the proper gum domain, output the error message to logs, and sets the specified retval to retvar.
#define GUM_RETURN_WITH_ERROR(code, err_str, err, retval)
A helper macro that creates a GError with the proper gum domain, output the error message to logs, and returns with specified retval.
GError *
gum_error_new_from_variant (GVariant *var);
Converts the GVariant to GError.
This enumeration provides a list of errors
|
No error |
||
|
Catch-all for errors not distinguished by another error code |
||
|
Server internal error |
||
|
The operation cannot be performed due to insufficient client permissions |
||
|
User already exists |
||
|
Adding/creating groups for the user failure |
||
|
UID not available in the defined range |
||
|
Usertype is not set |
||
|
Encryption of secret failure |
||
|
User not found |
||
|
Invalid data provided in the request |
||
|
Deleting group for the user failure |
||
|
Self-destruction is not allowed |
||
|
Session termination of a user failure |
||
|
No changes specified in the user update request |
||
|
Unable to lock the user account before doing any changes |
||
|
Group already exists |
||
|
GID mot available in the defined range |
||
|
Group type not set |
||
|
Encryption of group secret failure |
||
|
Group not found |
||
|
User is already a member of the group |
||
|
Invalid data is specified in the request |
||
|
Self-destruction is not allowed |
||
|
Group has (other) user(s) |
||
|
No changes specified in the group update request |
||
|
Database is already locked |
||
|
File open error |
||
|
File attribute error |
||
|
File move error |
||
|
File write error |
||
|
Directory create failure |
||
|
Directory delete failure |
||
|
Directory copy failure |
||
|
Invalid name specified |
||
|
Invalid nickname specified |
||
|
Invalid secret specified |
||
|
Invalid string specified |
||
|
Invalid string length |
||
|
Invalid input specified |
||
|
Placeholder to rearrange enumeration - User space specific |