1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 """exceptions used by Flumotion, serializable and normal
23 """
24
25 from twisted.spread import pb
26
27 __version__ = "$Rev: 7039 $"
28
29
31 "An operation was cancelled"
32
33
36
37
39 """
40 Error during parsing of configuration
41
42 args[0]: str
43 """
44
46 "The given project does not exist"
47
48
50 "SSL is not available"
51
52
53
55 "General connection error"
56
57
60
61
64
65
68
69
72
73
75 "Connection attempt cancelled"
76
77
79 "Manager not connected"
80
81
84
85
88
89
91 "An error occurred while trying to parse the pipeline"
92
93
94
96 """
97 Generic remote method error.
98
99 @ivar methodName: name of the method
100 @type methodName: str
101 @ivar debug: optional additional debug message
102 @type debug: str
103 """
104 - def __init__(self, methodName, debug=None):
109
110
112 msg = "%s on method '%s'" % (self.__class__.__name__, self.methodName)
113 if self.debug:
114 msg += " (%s)" % self.debug
115 return msg
116
117
119 "Error while running remote code, before getting a result"
120
121
123 "A remote method generated a failure result"
124
125
127 "The remote method does not exist"
128
129
130
131
132 -class EntrySyntaxError(pb.Error):
133 "Syntax error while getting entry point in a bundle"
134
135
136
138 "The component is not ready yet"
139
140
142 "An error occurred while setting a property on the component"
143
144
146 "The component does not have a perspective"
147
150
151
152 __pychecker__ = 'no-shadowbuiltin'
155 import warnings
156 warnings.warn("Please use builtin SystemError or errors.FatalError",
157 DeprecationWarning, stacklevel=2)
158 pb.Error.__init__(self, *args, **kwargs)
159 __pychecker__ = ''
160
162 "A syntax error during a reload of a module"
163
164
166 "The remote object was in the wrong state for this command"
167
168
170 "You do not have the necessary privileges to complete this operation"
171
172
173
175 """
176 Error while doing something to a component.
177
178 args[0]: ComponentState
179 """
180
181
182
184 "Component is sleeping, cannot handle request"
185
186
188 "Component told to start, but is already starting"
189
190
192 "Component told to start, but is already running"
193
194
196 "Component is in the wrong mood to perform the given function"
197
198
200 "Component does not have its worker available"
201
202
204 """
205 Component is busy doing something.
206
207 args[0]: ComponentState
208 args[1]: str
209 """
210
211
213 """
214 An error in the configuration of the component.
215
216 args[0]: ComponentState
217 args[1]: str
218 """
219
220
222 """
223 A component name is already used.
224
225 args[0]: L{flumotion.common.common.componentId}
226 """
227
228
230 """
231 An error during creation of a component. Can be raised during a
232 remote_create call on a worker.
233 """
234
235
237 """
238 An exception that has already been adequately handled, but still needs
239 to be propagated to indicate failure to callers.
240
241 This allows callers and defgens to propagate gracefully without
242 doing a traceback, while still doing tracebacks for unhandled exceptions.
243
244 Only argument is the original exception or failure.
245 """
246
247
249 """
250 An error during setup of a component. Can be raised during a
251 remote_setup call on a component.
252 """
253
254
256 """
257 An error during starting of a component. Can be raised during a
258 remote_start call on a component.
259 """
260
261
263 """
264 An error during setup of a component, that's already handled in a
265 different way (for example, through a message).
266 Can be raised during a remote_setup call on a component.
267 """
268
269
271 """
272 An error during starting of a component, that's already handled in a
273 different way (for example, through a message).
274 Can be raised during a remote_start call on a component.
275 """
276
277
279 "A given component or component type does not exist"
280
281
283 "The configuration for the component is not valid"
284
285
287 "A given plug type does not exist"
288
289
290
292 "A given effect or effect type does not exist"
293
294
296 "Generic Flumotion error"
297
298
300 "The requested bundle was not found"
301
302
305
306
307
309 "Generic GStreamer error"
310
311
313 """GStreamer-generated error with source, GError and debug string as args"""
314
315
317 "A needed element is missing"
318
319
321 "Access is denied to this object, usually a file or directory"
322