diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2011-05-05 19:44:36 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2011-05-05 19:44:36 +0200 |
commit | e03093dd392b92f51b7d7cf66d7b1949b9f843e6 (patch) | |
tree | dbd2b85d8b201cb5f2848b3aaa11cffbc96031c2 /gitdb/exc.py | |
parent | 6463c10db377573e695bc504a9451bdb6cbf61f5 (diff) | |
download | gitdbmerger.tar.gz |
Removed plenty of code which went into git-python. This is just for completeness, gitdb doesn't need to be worked on anymoregitdbmerger
Diffstat (limited to 'gitdb/exc.py')
-rw-r--r-- | gitdb/exc.py | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/gitdb/exc.py b/gitdb/exc.py index e087047..89a686a 100644 --- a/gitdb/exc.py +++ b/gitdb/exc.py @@ -3,30 +3,4 @@ # This module is part of GitDB and is released under # the New BSD License: http://www.opensource.org/licenses/bsd-license.php """Module with common exceptions""" -from util import to_hex_sha -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. Instantiate with the - failed sha""" - - def __str__(self): - return "BadObject: %s" % to_hex_sha(self.args[0]) - -class ParseError(ODBError): - """Thrown if the parsing of a file failed due to an invalid format""" - -class AmbiguousObjectName(ODBError): - """Thrown if a possibly shortened name does not uniquely represent a single object - in the database""" - -class BadObjectType(ODBError): - """The object had an unsupported type""" - -class UnsupportedOperation(ODBError): - """Thrown if the given operation cannot be supported by the object database""" |