diff --git a/ipaacalib/python/src/ipaaca/__init__.py b/ipaacalib/python/src/ipaaca/__init__.py index 67a11f0a0744cc7f63c69d0e768b8ff6fa1b4ef0..cba0bc0d5c8ac8249e5fa2b9e23eda0ab1ee3175 100755 --- a/ipaacalib/python/src/ipaaca/__init__.py +++ b/ipaacalib/python/src/ipaaca/__init__.py @@ -157,10 +157,15 @@ class IUNotFoundError(Exception): def __init__(self, iu_uid): super(IUNotFoundError, self).__init__('Lookup of IU ' + str(iu_uid) + ' failed.') -class IUPayloadLockTimeoutError(Exception) +class IUPayloadLockTimeoutError(Exception): """Error indicating that exclusive access to the Payload could not be obtained in time.""" def __init__(self, iu): - super(IUPayloadLockTimeoutError, self).__init__('Timeout while accessing payload of IU' + str(iu.uid) + '.') + super(IUPayloadLockTimeoutError, self).__init__('Timeout while accessing payload of IU ' + str(iu.uid) + '.') + +class IUPayloadLockedError(Exception): + """Error indicating that exclusive access to the Payload could not be obtained because someone actually locked it.""" + def __init__(self, iu): + super(IUPayloadLockedError, self).__init__('IU '+str(iu.uid)+' was locked during access attempt.') ## --- Generation Architecture -----------------------------------------------