Skip to content

Commit fad5f69

Browse files
committed
Add comments
1 parent b275fbe commit fad5f69

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

index.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,29 @@
11
// DB Flags
2+
// Database error due to violation of duplicate constraint
23
exports.OBJECT_DUPLICATE = 'OBJECT_DUPLICATE';
4+
// Object matching query does not exist
35
exports.OBJECT_NOT_FOUND = 'OBJECT_NOT_FOUND';
46

57
// Token Flags
8+
// Expiration time is passed
69
exports.TOKEN_EXPIRED = 'TOKEN_EXPIRED';
10+
// Token does not contain expected parts after decrypting
711
exports.TOKEN_MALFORMED = 'TOKEN_MALFORMED';
812

913
// Permissions Flags
14+
// User has insufficient permissions for the desired action
1015
exports.ACCESS_DENIED = 'ACCESS_DENIED';
16+
// Failed to authorize the user
1117
exports.UNAUTHORIZED = 'UNAUTHORIZED';
1218

1319
// Query Flags
20+
// Layers of query exceed maximum allowed limit
1421
exports.QUERY_DEPTH_EXCEEDED = 'QUERY_DEPTH_EXCEEDED';
22+
// Calculated complexity exceeds the maximum allowed limit
1523
exports.QUERY_COMPLEXITY_EXCEEDED = 'QUERY_COMPLEXITY_EXCEEDED';
24+
// At least one layer contains nodes exceeding the maximum allowed limit
1625
exports.QUERY_BREADTH_EXCEEDED = 'QUERY_BREADTH_EXCEEDED';
1726

1827
// Mystery Flags
28+
// New phone, who dis?
1929
exports.UNKNOWN_ERROR = 'UKNOWN_ERROR';

0 commit comments

Comments
 (0)