update nss patch to copy files it installs instead of symlinking them
[jhbuild.git] / jhbuild / errors.py
blob251e903cc77aa423a0682f0b022886928238fab8
1 # jhbuild - a build script for GNOME 1.x and 2.x
2 # Copyright (C) 2001-2006 James Henstridge
4 # errors.py: definitions of exceptions used by jhbuild modules
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 class JhbuildException(Exception):
22 pass
25 class UsageError(JhbuildException):
26 '''An exception that should result in a usage message rather than
27 a full traceback.'''
30 class ConfigError(JhbuildException):
31 '''A problem in a configuration file.'''
34 class FatalError(JhbuildException):
35 '''An error not related to the user input.'''
38 class CommandError(JhbuildException):
39 '''An error occurred in an external command.'''
41 def __init__(self, message, returncode=None):
42 JhbuildException.__init__(self, message)
43 self.returncode = returncode
45 class BuildStateError(JhbuildException):
46 '''An error occurred while processing a build state.'''
49 class DependencyCycleError(JhbuildException):
50 '''There is a dependency cycle in the module set'''