-
Notifications
You must be signed in to change notification settings - Fork 415
/
error_codes.proto
83 lines (59 loc) · 2.1 KB
/
error_codes.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Copyright 2020 Alibaba Group Holding Limited. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
syntax = "proto3";
package gs.rpc;
enum Code {
// Not an error; returned on success.
OK = 0;
// Timeout, used when an operation fail to return result in an specific time.
TIMEOUT_ERROR = 1;
// Required resources can not be found.
NOT_FOUND_ERROR = 2;
// Connection error with client.
// e.g. multiple client connnect to coordinator at the same time or
// failed to launch engine locally.
CONNECTION_ERROR = 3;
// Error raised by vineyard.
VINEYARD_ERROR = 4;
// Compile graph frame or app frame failed.
COMPILATION_ERROR = 5;
ALREADY_EXISTS_ERROR = 6;
UDF_INTERNAL_ERROR = 7;
UNAVAILABLE_ERROR = 8;
// Arguments of operations is invalid / in a wrong format.
INVALID_ARGUMENT_ERROR = 9;
PERMISSION_DENIED_ERROR = 10;
NETWORK_ERROR = 11;
K8S_ERROR = 12;
UNIMPLEMENTED_ERROR = 13;
GREMLIN_QUERY_ERROR = 14;
// Errors raised by analytical engine
ANALYTICAL_ENGINE_INTERNAL_ERROR = 30;
// Errors raised by interactive engine
INTERACTIVE_ENGINE_INTERNAL_ERROR = 31;
// Errors raised by learning engine
LEARNING_ENGINE_INTERNAL_ERROR = 32;
// Errors raised by coordinator
COORDINATOR_INTERNAL_ERROR = 33;
// Errors raised by analytical engine
// Results of workers not consistent
WORKER_RESULTS_INCONSISTENT_ERROR = 41;
// Unknown error.
UNKNOWN_ERROR = 101;
// Fatal error.
// Means the service is not recoverable.
// e.g. engine socket closed in grpc connection. Usually means engine has crashed.
FATAL_ERROR = 102;
}