summaryrefslogtreecommitdiff
path: root/lib/git/errors.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-04 17:30:31 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-04 17:30:31 +0200
commit6fbb69306c0e14bacb8dcb92a89af27d3d5d631f (patch)
tree4a6e0c14b412315c13cc4ac6466f4888644195a3 /lib/git/errors.py
parent25dca42bac17d511b7e2ebdd9d1d679e7626db5f (diff)
parente746f96bcc29238b79118123028ca170adc4ff0f (diff)
downloadgitpython-6fbb69306c0e14bacb8dcb92a89af27d3d5d631f.tar.gz
Merge branch 'odb'
Conflicts: lib/git/cmd.py
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r--lib/git/errors.py24
1 files changed, 15 insertions, 9 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py
index f66fb528..d8a35e02 100644
--- a/lib/git/errors.py
+++ b/lib/git/errors.py
@@ -8,19 +8,25 @@ Module containing all exceptions thrown througout the git package,
"""
class InvalidGitRepositoryError(Exception):
- """
- Thrown if the given repository appears to have an invalid format.
- """
+ """ Thrown if the given repository appears to have an invalid format. """
+
+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 BadObjectType(ODBError):
+ """The object had an unsupported type"""
class NoSuchPathError(OSError):
- """
- Thrown if a path could not be access by the system.
- """
+ """ Thrown if a path could not be access by the system. """
class GitCommandError(Exception):
- """
- Thrown if execution of the git command fails with non-zero status code.
- """
+ """ Thrown if execution of the git command fails with non-zero status code. """
def __init__(self, command, status, stderr=None):
self.stderr = stderr
self.status = status