org.alfresco.repo.lock
Class LockAcquisitionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.alfresco.error.AlfrescoRuntimeException
                  extended by org.alfresco.repo.lock.LockAcquisitionException
All Implemented Interfaces:
java.io.Serializable

public class LockAcquisitionException
extends org.alfresco.error.AlfrescoRuntimeException

Exception generated when a lock cannot be acquired.

Since:
3.2
See Also:
Serialized Form

Field Summary
static java.lang.String ERR_EXCLUSIVE_LOCK_EXISTS
           1: the qname 2: the lock token 3: the existing other lock
static java.lang.String ERR_FAILED_TO_ACQUIRE_LOCK
           1: the qname 2: the lock token
static java.lang.String ERR_FAILED_TO_RELEASE_LOCK
           1: the qname 2: the lock token
static java.lang.String ERR_LOCK_RESOURCE_MISSING
           1: the qname 2: the lock token
static java.lang.String ERR_LOCK_UPDATE_COUNT
           1: the qname 2: the lock token 3: the actual update count 4: the expected update count
 
Constructor Summary
LockAcquisitionException(org.alfresco.service.namespace.QName lockQName, java.lang.String lockToken)
           
LockAcquisitionException(java.lang.String msgId, java.lang.Object[] args)
           
LockAcquisitionException(java.lang.Throwable cause, java.lang.String msgId, java.lang.Object[] args)
           
 
Method Summary
 
Methods inherited from class org.alfresco.error.AlfrescoRuntimeException
create, create, getMsgId, getMsgParams, makeRuntimeException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ERR_FAILED_TO_ACQUIRE_LOCK

public static final java.lang.String ERR_FAILED_TO_ACQUIRE_LOCK

See Also:
Constant Field Values

ERR_LOCK_RESOURCE_MISSING

public static final java.lang.String ERR_LOCK_RESOURCE_MISSING

See Also:
Constant Field Values

ERR_LOCK_UPDATE_COUNT

public static final java.lang.String ERR_LOCK_UPDATE_COUNT

See Also:
Constant Field Values

ERR_FAILED_TO_RELEASE_LOCK

public static final java.lang.String ERR_FAILED_TO_RELEASE_LOCK

See Also:
Constant Field Values

ERR_EXCLUSIVE_LOCK_EXISTS

public static final java.lang.String ERR_EXCLUSIVE_LOCK_EXISTS

See Also:
Constant Field Values
Constructor Detail

LockAcquisitionException

public LockAcquisitionException(org.alfresco.service.namespace.QName lockQName,
                                java.lang.String lockToken)
Parameters:
lockQName - the lock that was sought
lockToken - the lock token being used

LockAcquisitionException

public LockAcquisitionException(java.lang.String msgId,
                                java.lang.Object[] args)
Parameters:
msgId - one of the message IDs defined
args - the arguments that apply

LockAcquisitionException

public LockAcquisitionException(java.lang.Throwable cause,
                                java.lang.String msgId,
                                java.lang.Object[] args)
Parameters:
cause - an exception leading up to this
msgId - one of the message IDs defined
args - the arguments that apply


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.