summaryrefslogtreecommitdiff
path: root/obalie/exceptions.py
diff options
context:
space:
mode:
authorMike Crute <mcrute@gmail.com>2010-04-20 23:02:42 -0400
committerMike Crute <mcrute@gmail.com>2010-04-20 23:02:42 -0400
commit5156d1d7635806a237bdf9857702068290fc6340 (patch)
tree0861c901c7d1e8b5f2003582f0460f0b2a713e9c /obalie/exceptions.py
downloadobalie-5156d1d7635806a237bdf9857702068290fc6340.tar.bz2
obalie-5156d1d7635806a237bdf9857702068290fc6340.tar.xz
obalie-5156d1d7635806a237bdf9857702068290fc6340.zip
First pass at the basic client
Diffstat (limited to 'obalie/exceptions.py')
-rw-r--r--obalie/exceptions.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/obalie/exceptions.py b/obalie/exceptions.py
new file mode 100644
index 0000000..c7cbb4d
--- /dev/null
+++ b/obalie/exceptions.py
@@ -0,0 +1,27 @@
1# vim: set filencoding=utf8
2"""
3Subversion Client Exceptions
4
5@author: Mike Crute (mcrute@ag.com)
6@organization: SoftGroup Interactive, Inc.
7@date: April 20, 2010
8"""
9
10
11class SubversionError(Exception):
12 pass
13
14
15class ExecutableError(SubversionError):
16
17 def __init__(self, return_code, command):
18 self.return_code = return_code
19 self.command = command
20
21 def __str__(self):
22 return "Command {0!r} returned with non-zero status: {1}".format(
23 self.command, self.return_code)
24
25
26class UnsupportedCommand(SubversionError):
27 pass