|
com.im.commons 5.8 | ||||||||
| 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
java.lang.IllegalStateException
com.im.commons.progress.AlreadyLockedException
public class AlreadyLockedException
This exception is thrown from a DFLockable.obtainLock(java.lang.String) when
the object is already locked. The Exception can provide information on
what exactly object has caused the operation to fail, what was the reason
of its locked state and who has locked it.
| Constructor Summary | |
|---|---|
AlreadyLockedException(DFLockable lockable,
String reason,
Throwable trace)
Creates a new instance of AlreadyLockedException |
|
AlreadyLockedException(DFLockable lockable,
String reason,
Throwable trace,
boolean lockedForever)
Creates a new instance of AlreadyLockedException |
|
| Method Summary | |
|---|---|
DFLockable |
getLockable()
|
Throwable |
getLockedBy()
The stack trace where the lockable was locked. |
String |
getReason()
|
boolean |
isLockedForever()
Return true if lockable is locked forever, which typically means that user does not have appropriate access rights and so no changes are allowed. |
| 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 |
| Constructor Detail |
|---|
public AlreadyLockedException(DFLockable lockable,
String reason,
Throwable trace)
public AlreadyLockedException(DFLockable lockable,
String reason,
Throwable trace,
boolean lockedForever)
| Method Detail |
|---|
public DFLockable getLockable()
public Throwable getLockedBy()
public String getReason()
public boolean isLockedForever()
|
com.im.commons 5.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||