summaryrefslogtreecommitdiff
path: root/lib/git/errors.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-02 23:53:29 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-02 23:53:29 +0200
commit6f8ce8901e21587cd2320562df412e05b5ab1731 (patch)
tree4376f34c327896f7951bc1af7c7d93896decf863 /lib/git/errors.py
parent8b86f9b399a8f5af792a04025fdeefc02883f3e5 (diff)
downloadgitpython-6f8ce8901e21587cd2320562df412e05b5ab1731.tar.gz
added frame for object reading, including simple test
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r--lib/git/errors.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py
index ecb1c35b..956e007f 100644
--- a/lib/git/errors.py
+++ b/lib/git/errors.py
@@ -10,8 +10,14 @@ Module containing all exceptions thrown througout the git package,
class InvalidGitRepositoryError(Exception):
""" Thrown if the given repository appears to have an invalid format. """
-class InvalidDBRoot(Exception):
+class ODBError(Exception):
+ """All errors thrown by the object database"""
+
+class InvalidDBRoot(ODBError):
"""Thrown if an object database cannot be initialized at the given path"""
+
+class BadObject(ODBError):
+ """The object with the given SHA does not exist"""
class NoSuchPathError(OSError):
""" Thrown if a path could not be access by the system. """