Add check() methods to object classes for consistency checking.
[jelmer/dulwich-libgit2.git] / dulwich / errors.py
index 873eaeb6bae1ac00147457fd9eff4fd833bdf04a..dec7c2e0aa7a04447a7926ef17dcfe22ed6f0783 100644 (file)
@@ -123,5 +123,9 @@ class PackedRefsException(FileFormatException):
     """Indicates an error parsing a packed-refs file."""
 
 
+class ObjectFormatException(FileFormatException):
+    """Indicates an error parsing an object."""
+
+
 class NoIndexPresent(Exception):
     """No index is present."""