1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 """exceptions used by Flumotion, serializable and normal
19 """
20
21 from twisted.spread import pb
22
23 __version__ = "$Rev$"
24
25
27 "An operation was cancelled"
28
29
32
33
35 """
36 Error during parsing of configuration
37
38 args[0]: str
39 """
40
41
43 """
44 The given project does not exist
45
46 @ivar projectName: name of the project
47 @type projectName: str
48 @ivar debug: optional additional debug message
49 @type debug: str
50 """
51
52 - def __init__(self, projectName, debug=None):
57
58
60 "SSL is not available"
61
62
63
64
65
67 "General connection error"
68
69
72
73
76
77
80
81
84
85
87 "Connection attempt cancelled"
88
89
91 "Manager not connected"
92
93
96
97
100
101
103 "An error occurred while trying to parse the pipeline"
104
105
106
107
108
110 """
111 Generic remote method error.
112
113 @ivar methodName: name of the method
114 @type methodName: str
115 @ivar debug: optional additional debug message
116 @type debug: str
117 """
118
119 - def __init__(self, methodName, debug=None):
124
125
126
128 msg = "%s on method '%s'" % (self.__class__.__name__, self.methodName)
129 if self.debug:
130 msg += " (%s)" % self.debug
131 return msg
132
133
135 "Error while running remote code, before getting a result"
136
137
139 "A remote method generated a failure result"
140
141
143 "The remote method does not exist"
144
145
146
147
148
149
150 -class EntrySyntaxError(pb.Error):
151 "Syntax error while getting entry point in a bundle"
152
153
154
155
156
158 "The component is not ready yet"
159
160
162 "An error occurred while setting a property on the component"
163
164
166 "The component does not have a perspective"
167
168
171
172
173 __pychecker__ = 'no-shadowbuiltin'
174
175
177
179 import warnings
180 warnings.warn("Please use builtin SystemError or errors.FatalError",
181 DeprecationWarning, stacklevel=2)
182 pb.Error.__init__(self, *args, **kwargs)
183 __pychecker__ = ''
184
185
187 "A syntax error during a reload of a module"
188
189
191 "The remote object was in the wrong state for this command"
192
193
195 "You do not have the necessary privileges to complete this operation"
196
197
198
199
200
202 """
203 Error while doing something to a component.
204
205 args[0]: ComponentState
206 """
207
208
209
210
211
213 "Component is sleeping, cannot handle request"
214
215
217 "Component told to start, but is already starting"
218
219
221 "Component told to start, but is already running"
222
223
225 "Component is in the wrong mood to perform the given function"
226
227
229 "Component does not have its worker available"
230
231
233 """
234 Component is busy doing something.
235
236 args[0]: ComponentState
237 args[1]: str
238 """
239
240
242 """
243 An error in the configuration of the component.
244
245 args[0]: ComponentState
246 args[1]: str
247 """
248
249
251 """
252 A component name is already used.
253
254 args[0]: L{flumotion.common.common.componentId}
255 """
256
257
259 """
260 An error during creation of a component. Can be raised during a
261 remote_create call on a worker.
262 """
263
264
266 """
267 An exception that has already been adequately handled, but still needs
268 to be propagated to indicate failure to callers.
269
270 This allows callers and defgens to propagate gracefully without
271 doing a traceback, while still doing tracebacks for unhandled exceptions.
272
273 Only argument is the original exception or failure.
274 """
275
276
278 """
279 An error during setup of a component. Can be raised during a
280 remote_setup call on a component.
281 """
282
283
285 """
286 An error during starting of a component. Can be raised during a
287 remote_start call on a component.
288 """
289
290
292 """
293 An error during setup of a component, that's already handled in a
294 different way (for example, through a message).
295 Can be raised during a remote_setup call on a component.
296 """
297
298
300 """
301 An error during starting of a component, that's already handled in a
302 different way (for example, through a message).
303 Can be raised during a remote_start call on a component.
304 """
305
306
308 "A given component or component type does not exist"
309
310
312 "The configuration for the component is not valid"
313
314
316 "A given plug type does not exist"
317
318
319
320
321
323 "A given effect or effect type does not exist"
324
325
327 "Generic Flumotion error"
328
329
331 "The requested bundle was not found"
332
333
336
337
338
339
340
342 "The property cannnot be modified with the component already set-up"
343
344
345
346
347
349 "Generic GStreamer error"
350
351
353 """GStreamer-generated error with source, GError and
354 debug string as args"""
355
356
358 "A needed element is missing"
359
360
362 "Access is denied to this object, usually a file or directory"
363
364
366 "Access to an object that is not a directory"
367