org.apache.commons.transaction.locking
Class LockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.commons.transaction.locking.LockException
All Implemented Interfaces:
Serializable

public class LockException
extends RuntimeException

Exception displaying a lock problem.

Since:
1.1
Version:
$Id: LockException.java 493628 2007-01-07 01:42:48Z joerg $
See Also:
Serialized Form

Nested Class Summary
static class LockException.Code
           
 
Field Summary
protected  LockException.Code code
           
protected  Object resourceId
           
 
Constructor Summary
LockException(LockException.Code code)
           
LockException(LockException.Code code, Object resourceId)
           
LockException(String message)
           
LockException(String message, LockException.Code code)
           
LockException(String message, LockException.Code code, Object resourceId)
           
LockException(String message, Object resourceId)
           
LockException(String message, Throwable cause, Object resourceId)
           
LockException(Throwable cause)
           
LockException(Throwable cause, LockException.Code code)
           
LockException(Throwable cause, Object resourceId)
           
 
Method Summary
 LockException.Code getCode()
          Returns the formal reason for the exception.
 Object getResourceId()
          Returns the resource the lock was tried on.
 
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

resourceId

protected Object resourceId

code

protected LockException.Code code
Constructor Detail

LockException

public LockException(String message,
                     Object resourceId)

LockException

public LockException(String message,
                     LockException.Code code)

LockException

public LockException(String message)

LockException

public LockException(String message,
                     LockException.Code code,
                     Object resourceId)

LockException

public LockException(LockException.Code code,
                     Object resourceId)

LockException

public LockException(String message,
                     Throwable cause,
                     Object resourceId)

LockException

public LockException(Throwable cause,
                     Object resourceId)

LockException

public LockException(Throwable cause)

LockException

public LockException(LockException.Code code)

LockException

public LockException(Throwable cause,
                     LockException.Code code)
Method Detail

getCode

public LockException.Code getCode()
Returns the formal reason for the exception.

Returns:
the reason code

getResourceId

public Object getResourceId()
Returns the resource the lock was tried on.

Returns:
the resource or null if not applicable


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