Class LockException

All Implemented Interfaces:
Serializable

public class LockException extends BoxLangException
This exception is thrown when a locking operation fails - either with a failure to obtain the lock or due to a timeout
See Also:
  • Field Details

    • lockName

      protected String lockName
      Name of affected lock (if the lock is unnamed, the value is "anonymous").
    • lockOperation

      protected String lockOperation
      Operation that failed (Timeout, Create Mutex, or Unknown).
  • Constructor Details

    • LockException

      public LockException(String message, String lockName)
      Constructor
      Parameters:
      message - The message
      lockName - The lock name
    • LockException

      public LockException(String message, String lockName, String lockOperation)
      Constructor
      Parameters:
      message - The message
      lockName - The lock name
      lockOperation - The lock operation
    • LockException

      public LockException(String message, String detail, String lockName, String lockOperation, Throwable cause)
      Constructor
      Parameters:
      message - The message
      detail - The detail
      lockName - The lock name
      lockOperation - The lock operation
      cause - The cause
  • Method Details

    • getLockName

      public String getLockName()
    • getLockOperation

      public String getLockOperation()
    • dataAsStruct

      public IStruct dataAsStruct()
      Description copied from class: BoxLangException
      Additional data specific to this exception type (doesn't include message, stacktrace, tagcontext, etc)
      Overrides:
      dataAsStruct in class BoxLangException
      Returns: