Package ro.sync.exml.plugin.lock
Class LockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
ro.sync.exml.plugin.lock.LockException
- All Implemented Interfaces:
Serializable
Thrown when could not lock or unlock properly
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final ro.sync.i18n.MessageBundle
The messages resource bundle. -
Constructor Summary
ConstructorsConstructorDescriptionLockException
(String message, boolean acquire, String detailedMessage) Constructor. -
Method Summary
Modifier and TypeMethodDescriptiongetOpenErrorMessage
(boolean close) void
setOwnerName
(String ownerName) Sets the name of the lock owner.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
messages
protected static final ro.sync.i18n.MessageBundle messagesThe messages resource bundle.
-
-
Constructor Details
-
LockException
Constructor.- Parameters:
message
- The error message.acquire
- True if the exception occurred while trying to acquire the lock.detailedMessage
- The detailed exception message.
-
-
Method Details
-
setOwnerName
Sets the name of the lock owner.- Parameters:
ownerName
- The name of the lock owner to set.
-
getOwnerName
- Returns:
- Returns the name of the lock owner.
-
getCauseMessage
- Returns:
- The main cause for the exception.
-
getMessage
- Overrides:
getMessage
in classThrowable
- See Also:
-
getDetailedMessage
- Returns:
- Returns the detailedMessage.
-
getOpenErrorMessage
- Parameters:
close
-true
if must advise to close the editor. Otherwise will advise to cancel the operation.- Returns:
- Error message to show to user on open if lock failed.
-