summaryrefslogtreecommitdiff
path: root/lib/git/errors.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-08 23:50:51 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-08 23:50:51 +0200
commitb0e84a3401c84507dc017d6e4f57a9dfdb31de53 (patch)
tree59ad57c3bb4460ed824a144ddc4f84e4b20675dc /lib/git/errors.py
parent6da04adff0b96c5163b0c2530028b72be2fd26fd (diff)
parent07eaa4ce2696a88ec0db6e91f191af1e48226aca (diff)
downloadgitpython-b0e84a3401c84507dc017d6e4f57a9dfdb31de53.tar.gz
Merge branch 'doc_enhancements' into fixes
Diffstat (limited to 'lib/git/errors.py')
-rw-r--r--lib/git/errors.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/lib/git/errors.py b/lib/git/errors.py
index bf882d33..2632d5f3 100644
--- a/lib/git/errors.py
+++ b/lib/git/errors.py
@@ -3,14 +3,24 @@
#
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
+"""
+Module containing all exceptions thrown througout the git package,
+"""
class InvalidGitRepositoryError(Exception):
- pass
+ """
+ Thrown if the given repository appears to have an invalid format.
+ """
class NoSuchPathError(Exception):
- pass
+ """
+ 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.
+ """
def __init__(self, command, status, stderr=None):
self.stderr = stderr
self.status = status