org.apache.commons.transaction.locking
Class LockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
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
| Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
resourceId
protected Object resourceId
code
protected LockException.Code code
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)
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.