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: 8807 $"
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
45
47 """
48 The given project does not exist
49
50 @ivar projectName: name of the project
51 @type projectName: str
52 @ivar debug: optional additional debug message
53 @type debug: str
54 """
55
56 - def __init__(self, projectName, debug=None):
61
62
64 "SSL is not available"
65
66
67
68
69
71 "General connection error"
72
73
76
77
80
81
84
85
88
89
91 "Connection attempt cancelled"
92
93
95 "Manager not connected"
96
97
100
101
104
105
107 "An error occurred while trying to parse the pipeline"
108
109
110
111
112
114 """
115 Generic remote method error.
116
117 @ivar methodName: name of the method
118 @type methodName: str
119 @ivar debug: optional additional debug message
120 @type debug: str
121 """
122
123 - def __init__(self, methodName, debug=None):
128
129
130
132 msg = "%s on method '%s'" % (self.__class__.__name__, self.methodName)
133 if self.debug:
134 msg += " (%s)" % self.debug
135 return msg
136
137
139 "Error while running remote code, before getting a result"
140
141
143 "A remote method generated a failure result"
144
145
147 "The remote method does not exist"
148
149
150
151
152
153
154 -class EntrySyntaxError(pb.Error):
155 "Syntax error while getting entry point in a bundle"
156
157
158
159
160
162 "The component is not ready yet"
163
164
166 "An error occurred while setting a property on the component"
167
168
170 "The component does not have a perspective"
171
172
175
176
177 __pychecker__ = 'no-shadowbuiltin'
178
179
181
183 import warnings
184 warnings.warn("Please use builtin SystemError or errors.FatalError",
185 DeprecationWarning, stacklevel=2)
186 pb.Error.__init__(self, *args, **kwargs)
187 __pychecker__ = ''
188
189
191 "A syntax error during a reload of a module"
192
193
195 "The remote object was in the wrong state for this command"
196
197
199 "You do not have the necessary privileges to complete this operation"
200
201
202
203
204
206 """
207 Error while doing something to a component.
208
209 args[0]: ComponentState
210 """
211
212
213
214
215
217 "Component is sleeping, cannot handle request"
218
219
221 "Component told to start, but is already starting"
222
223
225 "Component told to start, but is already running"
226
227
229 "Component is in the wrong mood to perform the given function"
230
231
233 "Component does not have its worker available"
234
235
237 """
238 Component is busy doing something.
239
240 args[0]: ComponentState
241 args[1]: str
242 """
243
244
246 """
247 An error in the configuration of the component.
248
249 args[0]: ComponentState
250 args[1]: str
251 """
252
253
255 """
256 A component name is already used.
257
258 args[0]: L{flumotion.common.common.componentId}
259 """
260
261
263 """
264 An error during creation of a component. Can be raised during a
265 remote_create call on a worker.
266 """
267
268
270 """
271 An exception that has already been adequately handled, but still needs
272 to be propagated to indicate failure to callers.
273
274 This allows callers and defgens to propagate gracefully without
275 doing a traceback, while still doing tracebacks for unhandled exceptions.
276
277 Only argument is the original exception or failure.
278 """
279
280
282 """
283 An error during setup of a component. Can be raised during a
284 remote_setup call on a component.
285 """
286
287
289 """
290 An error during starting of a component. Can be raised during a
291 remote_start call on a component.
292 """
293
294
296 """
297 An error during setup of a component, that's already handled in a
298 different way (for example, through a message).
299 Can be raised during a remote_setup call on a component.
300 """
301
302
304 """
305 An error during starting of a component, that's already handled in a
306 different way (for example, through a message).
307 Can be raised during a remote_start call on a component.
308 """
309
310
312 "A given component or component type does not exist"
313
314
316 "The configuration for the component is not valid"
317
318
320 "A given plug type does not exist"
321
322
323
324
325
327 "A given effect or effect type does not exist"
328
329
331 "Generic Flumotion error"
332
333
335 "The requested bundle was not found"
336
337
340
341
342
343
344
346 "Generic GStreamer error"
347
348
350 """GStreamer-generated error with source, GError and
351 debug string as args"""
352
353
355 "A needed element is missing"
356
357
359 "Access is denied to this object, usually a file or directory"
360
361
363 "Access to an object that is not a directory"
364