1
2 """
3
4 @author: Fabio Erculiani <lxnay@sabayonlinux.org>
5 @contact: lxnay@sabayonlinux.org
6 @copyright: Fabio Erculiani
7 @license: GPL-2
8
9 B{Entropy Framework exceptions class module}
10
11 This module contains Entropy Framework exceptions classes.
12
13 """
14
16 """General superclass for Entropy exceptions"""
18 self.value = value[:]
19 Exception.__init__(self)
20
22 if isinstance(self.value, basestring):
23 return self.value
24 else:
25 return repr(self.value)
26
28 """Corruption indication"""
29
31 """On-Disk cache Corruption indication"""
32
34 """An invalid depend string has been encountered"""
35
37 """An invalid version string has been encountered"""
38
40 """An incorrect formatting was passed instead of the expected one"""
41
43 """A parameter of the wrong type was passed"""
44
46 """A parameter is required for the action requested but was not passed"""
47
49 """An error was generated while attempting to parse the request"""
50
52 """An incorrect formatting was passed instead of the expected one"""
53
55 """An incorrect type was passed instead of the expected one"""
56
58 """Cannot open repository database"""
59
61 """Cannot connect to service"""
62
64 """Raised to interrupt a thread or process"""
65
68
70 """Cannot open system database"""
71
73 """Source Package Manager generic errors"""
74
77
79 """Action queue issue"""
80
82 """
83 Data was not found when it was expected to exist or
84 was specified incorrectly
85 """
86
88 """Atom not properly formatted"""
89
91 """Package set does not exist"""
92
94 """A file was not found when it was expected to exist"""
95
97 """A directory was not found when it was expected to exist"""
98
100 """An operation was not permitted operating system"""
101
103 """Permission denied"""
104 from errno import EACCES as errno
105
107 """Read-only file system"""
108
110 """A required binary was not available or executable"""
111
113 """A required library was not available or executable"""
114
116 """SSL support is not available"""
117
119 """Generic Timeout Error exception"""
120
122 """Malformed or missing package data"""
123