diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-02 23:53:29 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-02 23:53:29 +0200 |
commit | 6f8ce8901e21587cd2320562df412e05b5ab1731 (patch) | |
tree | 4376f34c327896f7951bc1af7c7d93896decf863 /lib/git/errors.py | |
parent | 8b86f9b399a8f5af792a04025fdeefc02883f3e5 (diff) | |
download | gitpython-6f8ce8901e21587cd2320562df412e05b5ab1731.tar.gz |
added frame for object reading, including simple test
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r-- | lib/git/errors.py | 8 |
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. """ |