summaryrefslogtreecommitdiff
path: root/obalie/exceptions.py
blob: c124ee935f5d3e7e3ee5c0e4cbcd430e87638b61 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# vim: set filencoding=utf8
"""
Subversion Client Exceptions

@author: Mike Crute (mcrute@gmail.com)
@organization: SoftGroup Interactive, Inc.
@date: April 20, 2010
"""


class SubversionError(Exception):
    pass


class ExecutableError(SubversionError):

    def __init__(self, return_code, command):
        self.return_code = return_code
        self.command = command

    def __str__(self):
        return "Command {0!r} returned with non-zero status: {1}".format(
                self.command, self.return_code)


class UnsupportedCommand(SubversionError):
    pass