Error Types: Cattle Reference Manual

## Error Types Error Types — Load time and runtime errors |

## Types and Values

enum | CattleError
#define | CATTLE_ERROR

## Object Hierarchy

        GEnum
        ╰── CattleError

## Includes

    #include <cattle/cattle.h>

## 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.

## Functions

## Types and Values

### enum CattleError

Errors detected either on code loading or at runtime.

#### Members

CATTLE_ERROR_IO | Generic I/O error |
CATTLE_ERROR_UNBALANCED_BRACKETS | The number of open and closed brackets don't match |
CATTLE_ERROR_INPUT_OUT_OF_RANGE | The input cannot be stored in a tape cell |

### CATTLE_ERROR

    #define CATTLE_ERROR cattle_error_quark()

Error domain for Cattle. Errors in this domain will be from the CattleError enumeration.