diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/serd/env.h | 4 | ||||
-rw-r--r-- | include/serd/status.h | 32 |
2 files changed, 23 insertions, 13 deletions
diff --git a/include/serd/env.h b/include/serd/env.h index 906ec2f7..3d4cafd0 100644 --- a/include/serd/env.h +++ b/include/serd/env.h @@ -70,8 +70,8 @@ serd_env_qualify(const SerdEnv* SERD_NULLABLE env, /** Expand `curie`. - Errors: SERD_ERR_BAD_ARG if `curie` is not valid, or SERD_ERR_BAD_CURIE if - prefix is not defined in `env`. + Errors: SERD_BAD_ARG if `curie` is not valid, or SERD_BAD_CURIE if prefix is + not defined in `env`. */ SERD_API SerdStatus serd_env_expand(const SerdEnv* SERD_NULLABLE env, diff --git a/include/serd/status.h b/include/serd/status.h index c640b427..5de96d1d 100644 --- a/include/serd/status.h +++ b/include/serd/status.h @@ -16,17 +16,27 @@ SERD_BEGIN_DECLS /// Return status code typedef enum { - SERD_SUCCESS, ///< No error - SERD_FAILURE, ///< Non-fatal failure - SERD_ERR_UNKNOWN, ///< Unknown error - SERD_ERR_BAD_SYNTAX, ///< Invalid syntax - SERD_ERR_BAD_ARG, ///< Invalid argument - SERD_ERR_NOT_FOUND, ///< Not found - SERD_ERR_ID_CLASH, ///< Encountered clashing blank node IDs - SERD_ERR_BAD_CURIE, ///< Invalid CURIE (e.g. prefix does not exist) - SERD_ERR_INTERNAL, ///< Unexpected internal error (should not happen) - SERD_ERR_BAD_WRITE, ///< Error writing to file/stream - SERD_ERR_BAD_TEXT, ///< Invalid text encoding + SERD_SUCCESS, ///< Success + SERD_FAILURE, ///< Non-fatal failure + SERD_NO_DATA, ///< Missing input + SERD_OVERFLOW, ///< Insufficient space + + SERD_UNKNOWN_ERROR, ///< Unknown error + + SERD_BAD_SYNTAX, ///< Invalid syntax + SERD_BAD_ARG, ///< Invalid argument + SERD_BAD_LABEL, ///< Encountered clashing blank node label + SERD_BAD_CURIE, ///< Invalid CURIE or unknown namespace prefix + SERD_BAD_ALLOC, ///< Memory allocation failed + SERD_BAD_READ, ///< Error reading from file + SERD_BAD_WRITE, ///< Error writing to file + SERD_BAD_STREAM, ///< File or stream error + SERD_BAD_STACK, ///< Stack overflow + SERD_BAD_TEXT, ///< Invalid text encoding + SERD_BAD_CALL, ///< Invalid call + SERD_BAD_URI, ///< Invalid or unresolved URI + SERD_BAD_DATA, ///< Invalid data + SERD_BAD_LITERAL, ///< Invalid literal } SerdStatus; /// Return a string describing a status code |