# Part of the A-A-P recipe executive: remember the work specified in the recipe # Copyright (C) 2002 Stichting NLnet Labs # Permission to copy and use this file is specified in the file COPYING. # If this file is missing you can find it here: http://www.a-a-p.org/COPYING # # Errors # # It's OK to do "from Errors import *", these things are supposed to be global. # class UserError(Exception): """Error for something the user has done wrong. Usually causes us to exit with a non-zero value.""" def __init__(self, args = None): self.args = args class OriginUpdate(Exception): """An ":recipe" command updated the recipe file and throws this exception to cancel executing the old one.""" def __init__(self, args = None): self.args = args # vim: set sw=4 sts=4 tw=79 fo+=l: .