com.pega.pegarules.pub.database
Class LockFailureException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.pega.pegarules.pub.PRException
              extended by com.pega.pegarules.pub.database.DatabaseException
                  extended by com.pega.pegarules.pub.database.LockFailureException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
LockGoneException, LockStolenException

public abstract class LockFailureException
extends DatabaseException

An exception that is thrown when a lock-related problem occurs.

Version:
$Revision: 11395 $ $Date: 2011-06-09 15:21:28 -0400 (Thu, 09 Jun 2011) $
Author:
Jamie Gentry
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String VERSION
           
 
Method Summary
static LockFailureException createLostLockException(java.lang.String aLockName)
          Deprecated. create an instance of LockGoneException instead
static LockFailureException createOtherRequestorHasLockException(java.lang.String aLockName, java.lang.String aLockingRequestorID, java.lang.String aActionDescr)
          Deprecated. create an instance of LockStolenException instead
 
Methods inherited from class com.pega.pegarules.pub.database.DatabaseException
getSQL, setSQL, setSQLInserts
 
Methods inherited from class com.pega.pegarules.pub.PRException
toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
Method Detail

createOtherRequestorHasLockException

public static LockFailureException createOtherRequestorHasLockException(java.lang.String aLockName,
                                                                        java.lang.String aLockingRequestorID,
                                                                        java.lang.String aActionDescr)
Deprecated. create an instance of LockStolenException instead

Creates an exception indicating that we cannot lock a key because another Requestor already has the lock.

Parameters:
aLockName - the key we are trying to lock
aLockingRequestorID - ID of the Requestor that currently holds the lock, or null if unknown
aActionDescr - what we were trying to do that prompted the exception
Returns:
a new exception

createLostLockException

public static LockFailureException createLostLockException(java.lang.String aLockName)
Deprecated. create an instance of LockGoneException instead

Creates an exception indicating that we cannot perform a commit because a lock has ben lost.

Parameters:
aLockName - the key to the lost lock
Returns:
a new exception


Copyright © 2012 Pegasystems Inc. All Rights Reserved.