Package buildslave :: Module exceptions
[frames] | no frames]

Source Code for Module buildslave.exceptions

 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 -class AbandonChain(Exception):
17 """A series of chained steps can raise this exception to indicate that 18 one of the intermediate RunProcesses has failed, such that there is no 19 point in running the remainder. 'rc' should be the non-zero exit code of 20 the failing ShellCommand.""" 21
22 - def __repr__(self):
23 return "<AbandonChain rc=%s>" % self.args[0]
24