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 ) )
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 ) )
def __init__(self,invalid_device_id): Error.__init__( self, 'device id "%s" is not a valid device id' % invalid_device_id )
def __init__(self,context_id): Error.__init__(self,'context %s has no device selected' % (context_id,))
def __init__(self,device_id,device_error): Error.__init__( self, 'error from device "%s": %s' % (device_id,device_error.msg) )
def __init__(self,device_id): Error.__init__( self, 'device "%s" has no owner beacuse it is unlocked' % device_id )
def __init__(self,device_id): Error.__init__( self, 'can not unlock device "%s" because it is already unlocked' % device_id )