| Top |
| #define | TLM_ERROR |
| #define | TLM_GET_ERROR_FOR_ID() |
| GQuark | tlm_error_quark () |
| GError * | tlm_error_new_from_variant () |
| GVariant * | tlm_error_to_variant () |
This file provides Tlm error definitions and utilities. When creating an error, use TLM_ERROR for the error domain and errors from TlmError for the error code.
GError* err = g_error_new(TLM_ERROR, TLM_ERROR_INVALID_INPUT,
"Invalid input");
#define TLM_ERROR (tlm_error_quark())
This macro should be used when creating a GError (for example with
g_error_new()).
#define TLM_GET_ERROR_FOR_ID(code, message, args...)
A helper macro that creates a GError with the proper tlm domain
code |
A TlmError specifying the error |
|
message |
Format string for the error message |
|
... |
parameters for the error string |
GError *
tlm_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 |
||
|
Permission denied |
||
|
Invalid input |
||
|
Seat not found |
||
|
Session creation failed |
||
|
Session already exists |
||
|
session is not valid anymore |
||
|
Session termination failed |
||
|
dbus-server startup failed |
||
|
PAM authentication failed |
||
|
Dbus request aborted |
||
|
Dbus request not supported |
||
|
Dbus request failed with unknown error |
||
|
Placeholder to rearrange enumeration |