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:
- java.io.Serializable
@API(type=EXTENDABLE,
src=PUBLIC)
public class LockException
- extends java.lang.Exception
Thrown when could not lock or unlock properly
- See Also:
- Serialized Form
Constructor Summary |
LockException(java.lang.String message,
boolean acquire,
java.lang.String detailedMessage)
Constructor. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
LockException
public LockException(java.lang.String message,
boolean acquire,
java.lang.String detailedMessage)
- Constructor.
- Parameters:
message
- The error message.acquire
- True if the exception occurred while trying to acquire the lock.detailedMessage
- The detailed exception message.
getCauseMessage
public java.lang.String getCauseMessage()
- Returns:
- The main cause for the exception.
getMessage
public java.lang.String getMessage()
- Overrides:
getMessage
in class java.lang.Throwable
- See Also:
Throwable.getMessage()
getDetailedMessage
public java.lang.String getDetailedMessage()
- Returns:
- Returns the detailedMessage.
getOpenErrorMessage
public java.lang.String getOpenErrorMessage(boolean close)
- 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.
© Copyright Syncro Soft SRL 2002 - 2013. All rights reserved.