summaryrefslogtreecommitdiff
path: root/src/services/api/graphql/session/errors
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-08-25 13:36:43 -0500
committerJohn Estabrook <jestabro@vyos.io>2022-08-25 14:32:14 -0500
commitb4646149b4993578707833df96e972f76a298ef7 (patch)
tree0746771e98420c6a87225e5bb10834936ef9cbb5 /src/services/api/graphql/session/errors
parente8dc2c731697c7c76c75fa7844edde52dc0ff76b (diff)
downloadvyos-1x-b4646149b4993578707833df96e972f76a298ef7.tar.gz
vyos-1x-b4646149b4993578707833df96e972f76a298ef7.zip
graphql: T4640: add schema defs and resolver support for op-mode errors
Diffstat (limited to 'src/services/api/graphql/session/errors')
-rw-r--r--src/services/api/graphql/session/errors/op_mode_errors.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/services/api/graphql/session/errors/op_mode_errors.py b/src/services/api/graphql/session/errors/op_mode_errors.py
new file mode 100644
index 000000000..7ba75455d
--- /dev/null
+++ b/src/services/api/graphql/session/errors/op_mode_errors.py
@@ -0,0 +1,13 @@
+
+
+op_mode_err_msg = {
+ "UnconfiguredSubsystem": "subsystem is not configured or not running",
+ "DataUnavailable": "data currently unavailable",
+ "PermissionDenied": "client does not have permission"
+}
+
+op_mode_err_code = {
+ "UnconfiguredSubsystem": 2000,
+ "DataUnavailable": 2001,
+ "PermissionDenied": 1003
+}