## gva-error gva-error — Error Management |

## Synopsis

    #define             GVA_ERROR
    #define             GVA_SQLITE_ERROR
    enum                GvaError;
    void                gva_error_handle                    (GError **error);

## Description

These functions and macros are for use with GLib's GError API.

## Details

### GVA_ERROR

    #define GVA_ERROR               gva_error_quark ()

Error domain for general operations in GNOME Video Arcade. Errors in this domain will be from the GvaError enumeration. See GError for information on error domains.

### GVA_SQLITE_ERROR

    #define GVA_SQLITE_ERROR        gva_sqlite_error_quark ()

Error domain for SQLite operations in GNOME Video Arcade. Errors in this domain will be from SQLite's own result codes. See GError for information on error domains.

### enum GvaError

    typedef enum
    {
            GVA_ERROR_CONFIG,
            GVA_ERROR_FORMAT,
            GVA_ERROR_MAME,
            GVA_ERROR_QUERY,
            GVA_ERROR_SYSTEM

    } GvaError;

Error codes for general operations in GNOME Video Arcade.

`GVA_ERROR_CONFIG` | Configuration error.
`GVA_ERROR_FORMAT` | File format error.
`GVA_ERROR_MAME` | Error from a MAME process.
`GVA_ERROR_QUERY` | SQL query error.
`GVA_ERROR_SYSTEM` | System-level error.

### gva_error_handle ()

    void                gva_error_handle                    (GError **error);

If `error` has been set, issues a warning message to standard error. Otherwise the function does nothing.

`error` : | a GError