2.1 Status Codes — Serd 0.32.2 documentation

# 2.1 Status Codes

enum SerdStatus

  Return status code.

  enumerator SERD_SUCCESS

    No error.

  enumerator SERD_FAILURE

    Non-fatal failure.

  enumerator SERD_ERR_UNKNOWN

    Unknown error.

  enumerator SERD_ERR_BAD_SYNTAX

    Invalid syntax.

  enumerator SERD_ERR_BAD_ARG

    Invalid argument.

  enumerator SERD_ERR_NOT_FOUND

    Not found.

  enumerator SERD_ERR_ID_CLASH

    Encountered clashing blank node IDs.

  enumerator SERD_ERR_BAD_CURIE

    Invalid CURIE (e.g. prefix does not exist)

  enumerator SERD_ERR_INTERNAL

    Unexpected internal error (should not happen)

  enumerator SERD_ERR_BAD_WRITE

    Error writing to file/stream.

  enumerator SERD_ERR_BAD_TEXT

    Invalid text encoding.

const uint8_t *serd_strerror(SerdStatus status)

  Return a string describing a status code.