Class LockException

All Implemented Interfaces:
de.espirit.common.LocalizableError, Serializable
Direct Known Subclasses:
WorkflowLockException

public class LockException extends CheckedException
This LockException occurs if a lock attempt ora lock attempt fails.
Since:
2.3
See Also:
  • Constructor Details

    • LockException

      public LockException(String message, @Nullable @Nullable User user, long objectId)
      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.17
    • LockException

      public 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

    • getUserLoginName

      public String getUserLoginName()
      Returns the user's loginname who has currently locked the object.
      Returns:
      the user's loginname
      Since:
      4.0.17
      See Also:
    • getUserId

      public long getUserId()
      Returns the user's id who has currently locked the object.
      Returns:
      id of the user
      Since:
      4.0.17
      See Also:
    • getObjectId

      public long getObjectId()
      Returns the id of the locked object.
      Returns:
      id of the object
      Since:
      4.0.17