]> git.ipfire.org Git - pakfire.git/blame - python/pakfire/errors.py
Merge branch 'master' of ssh://git.ipfire.org/pub/git/oddments/pakfire
[pakfire.git] / python / pakfire / errors.py
CommitLineData
47a4cb89 1#!/usr/bin/python
b792d887
MT
2###############################################################################
3# #
4# Pakfire - The IPFire package management system #
5# Copyright (C) 2011 Pakfire development team #
6# #
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. #
11# #
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. #
16# #
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/>. #
19# #
20###############################################################################
47a4cb89 21
60845a36
MT
22from i18n import _
23
94438733
MT
24class commandTimeoutExpired(Exception):
25 pass # XXX cannot be as is
26
47a4cb89 27class Error(Exception):
60845a36
MT
28 exit_code = 1
29
30 message = _("An unhandled error occured.")
31
32
1e80d5d7
MT
33class ActionError(Error):
34 pass
47a4cb89 35
3ad4bb5a
MT
36class BuildAbortedException(Error):
37 pass
38
47a4cb89
MT
39class BuildError(Error):
40 pass
41
42class BuildRootLocked(Error):
43 pass
44
45class ConfigError(Error):
46 pass
47
348d903a 48class DependencyError(Error):
60845a36
MT
49 exit_code = 4
50
51 message = _("One or more dependencies could not been resolved.")
348d903a 52
47a4cb89
MT
53class DownloadError(Error):
54 pass
55
9e8b1d7a
MT
56class FileError(Error):
57 pass
58
7c8f2953
MT
59class FileNotFoundError(Error):
60 pass
61
7b1e25fd
MT
62class NotAnIPFireSystemError(Error):
63 pass
64
6a509182
MT
65class 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.")
69
c07a3ca7
MT
70class PackageFormatUnsupportedError(Error):
71 pass
72
f781b1ab
MT
73class PakfireError(Error):
74 pass
75
936f6b37
MT
76
77class PakfireContainerError(Error):
78 message = _("Running pakfire-build in a pakfire container?")