Esempio n. 1
0
 def __init__(self,device_id,requesting_context,owning_context):
     Error.__init__(
         self,
         (
             'device "%s" can not be unlocked by context %s because ' +
             'it is owned by context %s'
         ) % (
             device_id,
             requesting_context,
             owning_context
         )
     )
Esempio n. 2
0
 def __init__(self,setting_id,setting_name,device_id,requesting_context,owning_context):
     Error.__init__(
         self,
         (
             'setting %d (%s) for device "%s" ' +
             'can not be accessed by context %s ' +
             'because it is locked by context %s'
         ) % (
             setting_id,
             setting_name,
             device_id,
             requesting_context,
             owning_context
         )
     )
Esempio n. 3
0
 def __init__(self,invalid_device_id):
     Error.__init__(
         self,
         'device id "%s" is not a valid device id' % invalid_device_id
     )
Esempio n. 4
0
 def __init__(self,context_id):
     Error.__init__(self,'context %s has no device selected' % (context_id,))
Esempio n. 5
0
 def __init__(self,device_id,device_error):
     Error.__init__(
         self,
         'error from device "%s": %s' % (device_id,device_error.msg)
     )
Esempio n. 6
0
 def __init__(self,device_id):
     Error.__init__(
         self,
         'device "%s" has no owner beacuse it is unlocked' % device_id
     )
Esempio n. 7
0
 def __init__(self,device_id):
     Error.__init__(
         self,
         'can not unlock device "%s" because it is already unlocked' % device_id
     )