| Tizen Login Manager Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
#define TLM_ERROR
#define TLM_GET_ERROR_FOR_ID (code,
message,
...)
enum TlmError;
GQuark tlm_error_quark (void);
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
|
A TlmError specifying the error |
|
Format string for the error message |
|
parameters for the error string |
typedef enum {
TLM_ERROR_NONE,
TLM_ERROR_UNKNOWN = 1,
TLM_ERROR_INTERNAL_SERVER,
TLM_ERROR_PERMISSION_DENIED,
TLM_ERROR_INVALID_INPUT = 32,
TLM_ERROR_SEAT_NOT_FOUND,
TLM_ERROR_SESSION_CREATION_FAILURE,
TLM_ERROR_SESSION_ALREADY_EXISTS,
TLM_ERROR_SESSION_NOT_VALID,
TLM_ERROR_DBUS_SERVER_START_FAILURE,
TLM_ERROR_DBUS_REQ_ABORTED = 40,
TLM_ERROR_DBUS_REQ_NOT_SUPPORTED,
TLM_ERROR_DBUS_REQ_UNKNOWN,
TLM_ERROR_LAST_ERR = 400
} TlmError;
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 | |
| dbus-server startup failed | |
| Dbus request aborted | |
| Dbus request not supported | |
| Dbus request failed with unknown error | |
| Placeholder to rearrange enumeration |