summaryrefslogtreecommitdiff
path: root/gbp/errors.py
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2008-10-31 09:51:48 +0100
committerGuido Guenther <agx@sigxcpu.org>2008-10-31 09:51:48 +0100
commit245d5f1ec62843ac86a5f433cdfe64021764272f (patch)
treeeb7899b104cafc26dec6e70a114cd8e701963320 /gbp/errors.py
parent1ef4e041ff117f7124c7116ea3f37ade5fbd645f (diff)
downloadgit-buildpackage-245d5f1ec62843ac86a5f433cdfe64021764272f.tar.gz
git-buildpackage-245d5f1ec62843ac86a5f433cdfe64021764272f.tar.bz2
git-buildpackage-245d5f1ec62843ac86a5f433cdfe64021764272f.zip
add GbpNothingImported exception
Diffstat (limited to 'gbp/errors.py')
-rw-r--r--gbp/errors.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/gbp/errors.py b/gbp/errors.py
index 74f0a552..5aae8b5d 100644
--- a/gbp/errors.py
+++ b/gbp/errors.py
@@ -7,4 +7,9 @@ class GbpError(Exception):
"""Generic exception raised in git-buildpackage commands"""
pass
+class GbpNothingImported(GbpError):
+ msg = "Nothing to commit, nothing imported."
+ def __str__(self):
+ return self.msg
+
# vim:et:ts=4:sw=4:et:sts=4:ai:set list listchars=tab\:»·,trail\:·: