Enum wyrd_error_code

Enum Documentation

enum wyrd_error_code

All valid values for wyrd_error_t are defined in this enumeration.

Values:

enumerator WYRD_ERR_SUCCESS

No error

enumerator WYRD_ERR_UNEXPECTED

An unexpected error occurred. This should only be returned from code branches that should never be reached, and indicates a bug in the library.

enumerator WYRD_ERR_NOT_IMPLEMENTED

This functionality is not yet implemented.

enumerator WYRD_ERR_INVALID_VALUE

Similar to POSIX EINVAL, an invalid parameter was provided.

enumerator WYRD_ERR_INITIALIZATION

Failed to initialize a resource.

enumerator WYRD_ERR_OUT_OF_MEMORY

Similar to POSIX ENOMEM, we reached a condition where there was insufficient memory available.

enumerator WYRD_ERR_ACCESS_DENIED

Access to a file/resource was denied.

enumerator WYRD_ERR_FS_ERROR

A file/resource or one of its parent path components does not exist, or could not be resolved.

enumerator WYRD_ERR_IO_ERROR

Reading from/writing to a file or resource failed.

enumerator WYRD_ERR_PROPERTY_NOT_FOUND

Property not found in document.

enumerator WYRD_ERR_EDIT_NOT_FOUND

No matching edit found in document.

enumerator WYRD_ERR_BAD_PROPERTY_TYPE

Tried accessing a property as the wrong type.

enumerator WYRD_ERR_BAD_MERGE

Could not merge property values.

enumerator WYRD_ERR_BAD_MERGE_STRATEGY

The given merge strategy does not match the one on record.

enumerator WYRD_ERR_END_OF_RESOURCE
enumerator WYRD_ERR_ITERATOR_INVALID

Invalid iterator; this could mean it is at the end.

enumerator WYRD_ERR_SERIALIZATION

Serialization or deserialization failed.

enumerator WYRD_ERROR_LAST

Error codes larger than or equal to this value are not defined.

enumerator WYRD_START_USER_RANGE

Any user-defined errors should be added to this offset.