From c5ad54062ad767c0d2882f64381ad15c034e8872 Mon Sep 17 00:00:00 2001 From: Gauvain Pocentek Date: Sat, 27 May 2017 11:48:36 +0200 Subject: Add lower-level methods for Gitlab() Multiple goals: * Support making direct queries to the Gitlab server, without objects and managers. * Progressively remove the need to know about managers and objects in the Gitlab class; the Gitlab should only be an HTTP proxy to the gitlab server. * With this the objects gain control on how they should do requests. The complexities of dealing with object specifics will be moved in the object classes where they belong. --- gitlab/exceptions.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'gitlab/exceptions.py') diff --git a/gitlab/exceptions.py b/gitlab/exceptions.py index c7d1da6..401e44c 100644 --- a/gitlab/exceptions.py +++ b/gitlab/exceptions.py @@ -47,6 +47,14 @@ class GitlabOperationError(GitlabError): pass +class GitlabHttpError(GitlabError): + pass + + +class GitlaParsingError(GitlabHttpError): + pass + + class GitlabListError(GitlabOperationError): pass -- cgit v1.2.1