Next: , Previous: , Up: Top   [Index]


5 The Message class

Messages represent errors, warnings and informative notes from the server. If an Entity object has such messages attached, it may mean that a transaction did not work out as expected, or that the submitted entities may not completely follow the datamodel.

Class: Message

The class for server messages.

Instance Variable of Message: int64 code

The message code as specified in the Protobuf specification.

Instance Variable of Message: string description

A human-readable description of the message.

Method on Message: Message (struct data)

Typically Message objects are not created by the user, but by the caosdb library. This constructor takes a data argument which provides initial content.