1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 """
23 serializable Flumotion exceptions
24 """
25
26 from twisted.spread import pb
27
31 """
32 Error during parsing of configuration
33
34 args[0]: str
35 """
37 "The given project does not exist"
39 "Problem with presence of <component> 'worker' attribute"
40
41
43 "General connection error"
44
47
50
53
56
58 "Manager not connected"
59
62
64 "An error occurred while trying to parse the pipeline"
65
66
68 """
69 Generic remote method error.
70
71 @ivar methodName: name of the method
72 @type methodName: str
73 @ivar debug: optional additional debug message
74 @type debug: str
75 """
76 - def __init__(self, methodName, debug=None):
77 self.methodName = methodName
78 self.debug = debug
79
80 self.args = (methodName, debug)
81
82
84 msg = "%s on method '%s'" % (self.__class__.__name__, self.methodName)
85 if self.debug:
86 msg += " (%s)" % self.debug
87 return msg
88
90 "Error while running remote code, before getting a result"
91
93 "A remote method generated a failure result"
94
96 "The remote method does not exist"
97
98
99
100 -class EntrySyntaxError(pb.Error):
101 "Syntax error while getting entry point in a bundle"
102
103
105 "The component is not ready yet"
106
108 "An error occurred while setting a property on the component"
109
111 "The component does not have a perspective"
112
114 "A system error, is usually fatal"
115
117 "A syntax error during a reload of a module"
118
120 "The remote object was in the wrong state for this command"
121
123 "You do not have the necessary privileges to complete this operation"
124
125
127 """
128 Error while doing something to a component.
129
130 args[0]: ComponentState
131 """
132
133
135 "Component is sleeping, cannot handle request"
136
138 "Component told to start, but is already starting"
139
141 "Component told to start, but is already running"
142
144 "Component is in the wrong mood to perform the given function"
145
147 "Component does not have its worker available"
148
150 """
151 Component is busy doing something.
152
153 args[0]: ComponentState
154 args[1]: str
155 """
156
158 """
159 An error in the configuration of the component.
160
161 args[0]: ComponentState
162 args[1]: str
163 """
164
166 """
167 An error during creation of a component. Can be raised during a
168 remote_create call on a worker.
169 """
170
172 """
173 An exception that has already been adequately handled, but still needs
174 to be propagated to indicate failure to callers.
175
176 This allows callers and defgens to propagate gracefully without
177 doing a traceback, while still doing tracebacks for unhandled exceptions.
178
179 Only argument is the original exception or failure.
180 """
181
183 """
184 An error during setup of a component. Can be raised during a
185 remote_setup call on a component.
186 """
187
189 """
190 An error during starting of a component. Can be raised during a
191 remote_start call on a component.
192 """
193
195 """
196 An error during setup of a component, that's already handled in a
197 different way (for example, through a message).
198 Can be raised during a remote_setup call on a component.
199 """
200
202 """
203 An error during starting of a component, that's already handled in a
204 different way (for example, through a message).
205 Can be raised during a remote_start call on a component.
206 """
207
209 "A given component or component type does not exist"
210
211
213 "A given effect or effect type does not exist"
214
216 "Generic Flumotion error"
217
219 "The requested bundle was not found"
220
223
224
226 "Generic GStreamer error"
227
229 """GStreamer-generated error with source, GError and debug string as args"""
230
232 "A needed element is missing"
233