|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.apache.fulcrum.yaafi.framework.locking.LockException
public class LockException
Exception displaying a lock problem.
Field Summary | |
---|---|
protected int |
code
|
static int |
CODE_DEADLOCK_VICTIM
Locking request canceled because of deadlock. |
static int |
CODE_INTERRUPTED
Thread has been interrupted while waiting for lock. |
static int |
CODE_TIMED_OUT
Maximum wait time for a lock has been exceeded. |
protected java.lang.String |
reason
|
protected java.lang.Object |
resourceId
|
Constructor Summary | |
---|---|
LockException(java.lang.String reason,
int code,
java.lang.Object resourceId)
|
Method Summary | |
---|---|
int |
getCode()
Returns the formal reason for the exception. |
java.lang.String |
getReason()
Returns the verbose for the exception. |
java.lang.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 |
---|
public static final int CODE_INTERRUPTED
public static final int CODE_TIMED_OUT
public static final int CODE_DEADLOCK_VICTIM
protected java.lang.Object resourceId
protected java.lang.String reason
protected int code
Constructor Detail |
---|
public LockException(java.lang.String reason, int code, java.lang.Object resourceId)
Method Detail |
---|
public int getCode()
CODE_INTERRUPTED
,CODE_TIMED_OUT
or
CODE_DEADLOCK_VICTIM
.public java.lang.Object getResourceId()
null
if not applicablepublic java.lang.String getReason()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |