Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBob Van Landuyt <bob@vanlanduyt.co>2018-05-21 14:42:07 +0300
committerBob Van Landuyt <bob@vanlanduyt.co>2018-06-05 21:47:42 +0300
commitc443133e779c4c508b9c6429dd4ba623d64f03f1 (patch)
tree390ec7649b0875f059c0962458319fe14ed8d34c /lib/gitlab/graphql.rb
parentaa4b1ae71260720b47695b8a256134f20280f61a (diff)
Handle exceptions outside the GraphQL schema
This allows us to report JSON parse exceptions to clients and ignore them in sentry.
Diffstat (limited to 'lib/gitlab/graphql.rb')
-rw-r--r--lib/gitlab/graphql.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/graphql.rb b/lib/gitlab/graphql.rb
new file mode 100644
index 00000000000..04a89432230
--- /dev/null
+++ b/lib/gitlab/graphql.rb
@@ -0,0 +1,5 @@
+module Gitlab
+ module Graphql
+ StandardGraphqlError = Class.new(StandardError)
+ end
+end