1
# This file is part of Buildbot.  Buildbot is free software: you can
2
# redistribute it and/or modify it under the terms of the GNU General Public
3
# License as published by the Free Software Foundation, version 2.
4
#
5
# This program is distributed in the hope that it will be useful, but WITHOUT
6
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
7
# FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
8
# details.
9
#
10
# You should have received a copy of the GNU General Public License along with
11
# this program; if not, write to the Free Software Foundation, Inc., 51
12
# Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
13
#
14
# Copyright Buildbot Team Members
15

16 4
from __future__ import absolute_import
17 4
from __future__ import print_function
18

19

20 4
class AbandonChain(Exception):
21

22
    """A series of chained steps can raise this exception to indicate that
23
    one of the intermediate RunProcesses has failed, such that there is no
24
    point in running the remainder. 'rc' should be the non-zero exit code of
25
    the failing ShellCommand."""
26

27
    def __repr__(self):
28
        return "<AbandonChain rc={0}>".format(self.args[0])

Read our documentation on viewing source code .

Loading