Class LockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
ortus.boxlang.runtime.types.exceptions.BoxLangException
ortus.boxlang.runtime.types.exceptions.LockException
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionprotected StringName of affected lock (if the lock is unnamed, the value is "anonymous").protected StringOperation that failed (Timeout, Create Mutex, or Unknown).Fields inherited from class ortus.boxlang.runtime.types.exceptions.BoxLangException
detail, type -
Constructor Summary
ConstructorsConstructorDescriptionLockException(String message, String lockName) ConstructorLockException(String message, String lockName, String lockOperation) ConstructorLockException(String message, String detail, String lockName, String lockOperation, Throwable cause) Constructor -
Method Summary
Modifier and TypeMethodDescriptionAdditional data specific to this exception type (doesn't include message, stacktrace, tagcontext, etc)Methods inherited from class ortus.boxlang.runtime.types.exceptions.BoxLangException
getDetail, getTagContext, getTypeMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
lockName
Name of affected lock (if the lock is unnamed, the value is "anonymous"). -
lockOperation
Operation that failed (Timeout, Create Mutex, or Unknown).
-
-
Constructor Details
-
LockException
Constructor- Parameters:
message- The messagelockName- The lock name
-
LockException
Constructor- Parameters:
message- The messagelockName- The lock namelockOperation- The lock operation
-
LockException
public LockException(String message, String detail, String lockName, String lockOperation, Throwable cause) Constructor- Parameters:
message- The messagedetail- The detaillockName- The lock namelockOperation- The lock operationcause- The cause
-
-
Method Details
-
getLockName
-
getLockOperation
-
dataAsStruct
Description copied from class:BoxLangExceptionAdditional data specific to this exception type (doesn't include message, stacktrace, tagcontext, etc)- Overrides:
dataAsStructin classBoxLangException- Returns:
-