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 17:55:06 +0100
commit38e86799291b8e446aa7634f87b67feee7427b00 (patch)
treef32d636ceba3a5c3593a39985151cb17bf184f28 /pygithub3/exceptions.py
parentWip on services.users (diff)
downloadpython-github3-38e86799291b8e446aa7634f87b67feee7427b00.tar.xz
python-github3-38e86799291b8e446aa7634f87b67feee7427b00.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