com.pega.pegarules.pub.database
Class LockStolenException

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
                      extended by com.pega.pegarules.pub.database.LockStolenException
All Implemented Interfaces:
java.io.Serializable

public class LockStolenException
extends LockFailureException

An exception indicating that a required lock has been stolen by another Requestor.

Version:
$Revision: 31 $ $Date: 2009-06-24 09:38:04 -0400 (Wed, 24 Jun 2009) $
Author:
Jamie Gentry
See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String sLockHeldByAnother
          The Rule-Message associated with this exception.
static java.lang.String VERSION
           
 
Constructor Summary
LockStolenException(java.lang.String aLockName, java.lang.String aLockingRequestorID, java.lang.Throwable aCause, int aSeverity, java.lang.String aDescr, java.lang.String aSQL, java.lang.String[] aSQLInserts)
          Creates an exception indicating that another Requestor has stolen a lock.
 
Method Summary
 java.lang.String getRequestorID()
          Get the ID of the Requestor that stole this lock.
 
Methods inherited from class com.pega.pegarules.pub.database.LockFailureException
createLostLockException, createOtherRequestorHasLockException
 
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

sLockHeldByAnother

public static final java.lang.String sLockHeldByAnother
The Rule-Message associated with this exception.

See Also:
Constant Field Values
Constructor Detail

LockStolenException

public LockStolenException(java.lang.String aLockName,
                           java.lang.String aLockingRequestorID,
                           java.lang.Throwable aCause,
                           int aSeverity,
                           java.lang.String aDescr,
                           java.lang.String aSQL,
                           java.lang.String[] aSQLInserts)
Creates an exception indicating that another Requestor has stolen a lock.

Parameters:
aLockName - the ID of the lock
aLockingRequestorID - the ID of the Requestor that stole this lock
aCause - the exception that caused this, or null if none (usually this will be null)
aSeverity - the severity of this exception
aDescr - a description of what was happening when this exception occurred
aSQL - the SQL operation associated with this exception, or null if none
aSQLInserts - the inserts for aSQL, or null if none
Method Detail

getRequestorID

public java.lang.String getRequestorID()
Get the ID of the Requestor that stole this lock.

Returns:
the ID of the Requestor


Copyright © 2012 Pegasystems Inc. All Rights Reserved.