File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 1
1
// DB Flags
2
+ // Database error due to violation of duplicate constraint
2
3
exports . OBJECT_DUPLICATE = 'OBJECT_DUPLICATE' ;
4
+ // Object matching query does not exist
3
5
exports . OBJECT_NOT_FOUND = 'OBJECT_NOT_FOUND' ;
4
6
5
7
// Token Flags
8
+ // Expiration time is passed
6
9
exports . TOKEN_EXPIRED = 'TOKEN_EXPIRED' ;
10
+ // Token does not contain expected parts after decrypting
7
11
exports . TOKEN_MALFORMED = 'TOKEN_MALFORMED' ;
8
12
9
13
// Permissions Flags
14
+ // User has insufficient permissions for the desired action
10
15
exports . ACCESS_DENIED = 'ACCESS_DENIED' ;
16
+ // Failed to authorize the user
11
17
exports . UNAUTHORIZED = 'UNAUTHORIZED' ;
12
18
13
19
// Query Flags
20
+ // Layers of query exceed maximum allowed limit
14
21
exports . QUERY_DEPTH_EXCEEDED = 'QUERY_DEPTH_EXCEEDED' ;
22
+ // Calculated complexity exceeds the maximum allowed limit
15
23
exports . QUERY_COMPLEXITY_EXCEEDED = 'QUERY_COMPLEXITY_EXCEEDED' ;
24
+ // At least one layer contains nodes exceeding the maximum allowed limit
16
25
exports . QUERY_BREADTH_EXCEEDED = 'QUERY_BREADTH_EXCEEDED' ;
17
26
18
27
// Mystery Flags
28
+ // New phone, who dis?
19
29
exports . UNKNOWN_ERROR = 'UKNOWN_ERROR' ;
You can’t perform that action at this time.
0 commit comments