From 6f8ce8901e21587cd2320562df412e05b5ab1731 Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Wed, 2 Jun 2010 23:53:29 +0200 Subject: added frame for object reading, including simple test --- lib/git/errors.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'lib/git/errors.py') 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. """ -- cgit v1.2.1