Revision 9b221ea4 lib/errors.py
b/lib/errors.py | ||
---|---|---|
209 | 209 |
""" |
210 | 210 |
|
211 | 211 |
|
212 |
class DeviceCreationError(GenericError): |
|
213 |
"""Error during the creation of a device. |
|
214 |
|
|
215 |
This exception should contain the list of the devices actually created |
|
216 |
up to now, in the form of pairs (node, device) |
|
217 |
|
|
218 |
""" |
|
219 |
def __init__(self, message, created_devices): |
|
220 |
GenericError.__init__(self) |
|
221 |
self.message = message |
|
222 |
self.created_devices = created_devices |
|
223 |
|
|
224 |
def __str__(self): |
|
225 |
return self.message |
|
226 |
|
|
227 |
|
|
212 | 228 |
class OpCodeUnknown(GenericError): |
213 | 229 |
"""Unknown opcode submitted. |
214 | 230 |
|
Also available in: Unified diff