Error
Error — Error handling
|
|
Description
This section describes the error handling in this library.
Details
LT_ERROR
#define LT_ERROR (lt_error_get_quark())
A GQuark value being used in this library.
enum lt_error_t
enum lt_error_t {
LT_ERR_UNKNOWN = -1,
LT_ERR_SUCCESS = 0,
LT_ERR_OOM,
LT_ERR_FAIL_ON_XML,
LT_ERR_EOT,
LT_ERR_FAIL_ON_SCANNER,
LT_ERR_NO_TAG,
LT_ERR_INVALID,
LT_ERR_END
};
Error code used in this library.
LT_ERR_UNKNOWN
|
unknown error happened.
|
LT_ERR_SUCCESS
|
an operation is succeeded.
|
LT_ERR_OOM
|
Out of memory occurred.
|
LT_ERR_FAIL_ON_XML
|
an error happened in libxml2.
|
LT_ERR_EOT
|
No tokens to scan.
|
LT_ERR_FAIL_ON_SCANNER
|
an error happened in the scanner.
|
LT_ERR_NO_TAG
|
No tags to process.
|
LT_ERR_INVALID
|
Invalid operation.
|
LT_ERR_END
|
No real error, but just a terminator.
|