aboutsummaryrefslogtreecommitdiffstats
path: root/pygithub3/exceptions.py
diff options
context:
space:
mode:
authorDavid Medina <davidmedina9@gmail.com>2012-02-11 17:55:06 +0100
committerDavid Medina <davidmedina9@gmail.com>2012-02-11 21:44:09 +0100
commit668d6ad5d2df27453879ea9a0a5ce80b4bc85247 (patch)
tree5970a6c1979231370b16a4de6ce3a7b6e81ac98a /pygithub3/exceptions.py
parentWip on services.users (diff)
downloadpython-github3-668d6ad5d2df27453879ea9a0a5ce80b4bc85247.tar.xz
python-github3-668d6ad5d2df27453879ea9a0a5ce80b4bc85247.zip
Change requests.Body to suppor required attributes
Diffstat (limited to 'pygithub3/exceptions.py')
-rw-r--r--pygithub3/exceptions.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pygithub3/exceptions.py b/pygithub3/exceptions.py
index 65881bb..c44c371 100644
--- a/pygithub3/exceptions.py
+++ b/pygithub3/exceptions.py
@@ -2,6 +2,12 @@
# -*- encoding: utf-8 -*-
+class InvalidBodySchema(Exception):
+ """ Raised when the 'valids_body' attribute of Resource isn't in a
+ valid form (required.issubsetof(schema))"""
+ pass
+
+
class DoesNotExists(Exception):
""" Raised when `Request` factory can't find the subclass """
pass