Raise a specific exception for non-existing objects (issue #152)

This commit is contained in:
Vincent Jacques
2013-03-29 13:10:59 +01:00
parent 7b3e4c15ed
commit 0bc368973a
5 changed files with 39 additions and 1 deletions
+6
View File
@@ -46,3 +46,9 @@ class BadCredentialsException(GithubException):
"""
Exception raised in case of bad credentials (when Github API replies with a 401 or 403 HTML status)
"""
class UnknownObjectException(GithubException):
"""
Exception raised a non-existing object is requested (when Github API replies with a 404 HTML status)
"""