summaryrefslogtreecommitdiff
path: root/obalie/exceptions.py
diff options
context:
space:
mode:
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