Class LockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.espirit.common.CheckedException
de.espirit.firstspirit.access.store.LockException
- All Implemented Interfaces:
- LocalizableError,- Serializable
- Direct Known Subclasses:
- WorkflowLockException
- Since:
- 2.3
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionLockException(String message, @Nullable User user, long objectId) Constructor for this class.LockException(String message, @Nullable User user, long objectId, @Nullable Throwable cause) Constructor for this class.
- 
Method SummaryModifier and TypeMethodDescriptionlongReturns the id of the locked object.longReturns the user's id who has currently locked the object.Returns the user's loginname who has currently locked the object.Methods inherited from class de.espirit.common.CheckedExceptiongetContext, getErrorCode, getLocalizedMessage, setErrorCodeMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Constructor Details- 
LockExceptionConstructor for this class.- Parameters:
- message- the message for this exception
- user- the user which holds the lock
- objectId- the id of the locked object
- Since:
- 4.0.17
 
- 
LockExceptionpublic LockException(String message, @Nullable @Nullable User user, long objectId, @Nullable @Nullable Throwable cause) Constructor for this class.- Parameters:
- message- the message for this exception
- user- the user which holds the lock
- objectId- the id of the locked object
- Since:
- 4.0.29
 
 
- 
- 
Method Details- 
getUserLoginNameReturns the user's loginname who has currently locked the object.- Returns:
- the user's loginname
- Since:
- 4.0.17
- See Also:
 
- 
getUserIdpublic long getUserId()Returns the user's id who has currently locked the object.- Returns:
- id of the user
- Since:
- 4.0.17
- See Also:
 
- 
getObjectIdpublic long getObjectId()Returns the id of the locked object.- Returns:
- id of the object
- Since:
- 4.0.17
 
 
-