public class LockUnavailableException extends PersistenceException
Supports the assignment of an error number at construction.
Modifier and Type | Field and Description |
---|---|
private static boolean |
captureStack
Flag indicating whether we capture stack trace data
|
private RecordIdentifier |
identifier
Identifier of record which could not be locked
|
private LockType |
lockType
Requested lock type which was not acquired
|
private static java.util.logging.Logger |
LOG
Logger
|
Constructor and Description |
---|
LockUnavailableException(java.lang.String message,
LockType lockType,
RecordIdentifier identifier)
Constructor which accepts an error message only.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
fillInStackTrace()
Override the ancestor class' implementation to capture stack trace data only if the lock
manager is configured for debug logging.
|
RecordIdentifier |
getIdentifier()
Get the record identifier.
|
LockType |
getLockType()
Get the requested lock type.
|
getNumber, getNumbers, isPrefix
private static final java.util.logging.Logger LOG
private static final boolean captureStack
private final LockType lockType
private final RecordIdentifier identifier
public LockUnavailableException(java.lang.String message, LockType lockType, RecordIdentifier identifier)
message
- Error message.public LockType getLockType()
public RecordIdentifier getIdentifier()
public final java.lang.Throwable fillInStackTrace()
fillInStackTrace
in class java.lang.Throwable