| Cattle Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | ||||
Cattle uses the facilities provided by GLib for error reporting.
Functions that can fail take a GError as last argument; errors raised
are in the CATTLE_ERROR domain with error codes from the CattleError
enumeration.
typedef enum
{
CATTLE_ERROR_BAD_UTF8,
CATTLE_ERROR_IO,
CATTLE_ERROR_UNBALANCED_BRACKETS,
CATTLE_ERROR_INPUT_OUT_OF_RANGE
} CattleError;
Errors detected either on code loading or at runtime.
Cattle only supports UTF-8, so any input not using this encoding causes an error to be raised.
#define CATTLE_ERROR cattle_error_quark()
Error domain for Cattle. Errors in this domain will be from the CattleError enumeration.