Enum yaml_error_type_t

Description

Many bad things could happen with the parser and emitter.

Values

YAML_NO_ERROR

No error is produced.

YAML_MEMORY_ERROR

Cannot allocate or reallocate a block of memory.

YAML_READER_ERROR

Cannot read or decode the input stream.

YAML_SCANNER_ERROR

Cannot scan the input stream.

YAML_PARSER_ERROR

Cannot parse the input stream.

YAML_COMPOSER_ERROR

Cannot compose a YAML document.

YAML_WRITER_ERROR

Cannot write to the output stream.

YAML_EMITTER_ERROR

Cannot emit a YAML stream.

Source

Lines 124-144 in include/yaml.h.

typedef enum yaml_error_type_e {
    /** No error is produced. */
    YAML_NO_ERROR,

    /** Cannot allocate or reallocate a block of memory. */
    YAML_MEMORY_ERROR,

    /** Cannot read or decode the input stream. */
    YAML_READER_ERROR,
    /** Cannot scan the input stream. */
    YAML_SCANNER_ERROR,
    /** Cannot parse the input stream. */
    YAML_PARSER_ERROR,
    /** Cannot compose a YAML document. */
    YAML_COMPOSER_ERROR,

    /** Cannot write to the output stream. */
    YAML_WRITER_ERROR,
    /** Cannot emit a YAML stream. */
    YAML_EMITTER_ERROR
} yaml_error_type_t;





Add Discussion as Guest

Log in to DocsForge