Skip to content
Snippets Groups Projects
Verified Commit 4845aa8e authored by Timm Fitschen's avatar Timm Fitschen
Browse files

add message code

parent eb4ccbfb
No related branches found
No related tags found
Loading
Pipeline #10936 passed
......@@ -24,12 +24,25 @@ option java_multiple_files = true;
option java_package = "org.caosdb.api.entity.v1alpha1";
package caosdb.entity.v1alpha1;
// Entity messages codes.
enum MessageCode {
// Unspecific code. Use this for anything where a client is not expected to
// handle this message in a specific way.
MESSAGE_CODE_UNSPECIFIED = 0;
// Unknown code. This value is a fall-back which may be used when the message
// code was not in this list. An unknown error code is a sign of a wrong otr
// out-dated implementation on either side.
MESSAGE_CODE_UNKNOWN = 1;
// The requested entity (retrieve, delete, or update) does not exist.
MESSAGE_CODE_ENTITY_DOES_NOT_EXIST = 2;
}
// Messages are used by server's or client's to transport *transient*
// information, e.g. general information about a transaction, warnings, or
// errors.
message Message {
// The code is a machine-readable identifier.
uint32 code = 1;
int32 code = 1;
// A short description of the message which is indented for human readers.
string description = 2;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment