summaryrefslogtreecommitdiff
path: root/lib/git/errors.py
diff options
context:
space:
mode:
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. """