org.apache.commons.transaction.memory
Class LockException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.apache.commons.transaction.memory.LockException
All Implemented Interfaces:
Serializable

public class LockException
extends RuntimeException

Exception displaying a lock problem in pessimistic transactions.

Version:
$Revision: 1.1 $
See Also:
OptimisticMapWrapper, Serialized Form

Field Summary
protected  int code
           
static int CODE_DEADLOCK_VICTIM
           
static int CODE_INTERRUPTED
           
static int CODE_TIMED_OUT
           
protected  Object key
           
protected  String reason
           
 
Constructor Summary
LockException(String reason, int code, Object key)
           
 
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

CODE_INTERRUPTED

public static final int CODE_INTERRUPTED
See Also:
Constant Field Values

CODE_TIMED_OUT

public static final int CODE_TIMED_OUT
See Also:
Constant Field Values

CODE_DEADLOCK_VICTIM

public static final int CODE_DEADLOCK_VICTIM
See Also:
Constant Field Values

key

protected Object key

reason

protected String reason

code

protected int code
Constructor Detail

LockException

public LockException(String reason,
                     int code,
                     Object key)


Copyright © 2004 The Apache Software Foundation. All Rights Reserved.