caosdb/message_code.h

namespace caosdb::entity

DataTypes have 2 dimensions: They may be atomic or reference typed, and they may be scalar or list valued. If they are atomic, they have an AtomicDataType. If they are reference typed, the reference name can be obtained with GetName().

MessageCodes for entity messages.

In contrast to the status codes, the message codes are part of the CaosDB API. Messages (and their codes) represent the state of the entities in a transaction or the server.

For a specification of the message codes, look at the protobuf documentation. The sources and documentation can be found at https://gitlab.indiscale.com/caosdb/src/caosdb-proto.

Enums

enum MessageCode

Values:

enumerator UNSPECIFIED
enumerator UNSPECIFIED
enumerator UNSPECIFIED

Unset/None.

enumerator UNSPECIFIED

Unset/None.

enumerator UNKNOWN
enumerator ENTITY_DOES_NOT_EXIST
enumerator ENTITY_HAS_NO_PROPERTIES
enumerator INTEGER_VALUE_OUT_OF_RANGE
enumerator ENTITY_HAS_BEEN_DELETED_SUCCESSFULLY

Functions

inline auto get_message_code(int code) noexcept -> MessageCode