]>
git.ipfire.org Git - pakfire.git/blob - python/pakfire/errors.py
2 ###############################################################################
4 # Pakfire - The IPFire package management system #
5 # Copyright (C) 2011 Pakfire development team #
7 # This program is free software: you can redistribute it and/or modify #
8 # it under the terms of the GNU General Public License as published by #
9 # the Free Software Foundation, either version 3 of the License, or #
10 # (at your option) any later version. #
12 # This program is distributed in the hope that it will be useful, #
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
15 # GNU General Public License for more details. #
17 # You should have received a copy of the GNU General Public License #
18 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
20 ###############################################################################
24 class commandTimeoutExpired(Exception):
25 pass # XXX cannot be as is
27 class Error(Exception):
30 message
= _("An unhandled error occured.")
33 class ActionError(Error
):
36 class BuildAbortedException(Error
):
39 class BuildError(Error
):
42 class BuildRootLocked(Error
):
45 class ConfigError(Error
):
48 class DependencyError(Error
):
51 message
= _("One or more dependencies could not been resolved.")
53 class DownloadError(Error
):
56 class FileError(Error
):
59 class FileNotFoundError(Error
):
62 class NotAnIPFireSystemError(Error
):
65 class OfflineModeError(Error
):
66 message
= _("The requested action cannot be done on offline mode.\n"
67 "Please connect your system to the network, remove --offline from the"
68 " command line and try again.")
70 class PackageFormatUnsupportedError(Error
):
73 class PakfireError(Error
):
77 class PakfireContainerError(Error
):
78 message
= _("Running pakfire-build in a pakfire container?")