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
public class LockException
- extends Exception
Thrown when could not lock or unlock properly
- See Also:
- Serialized Form
LockException
public LockException(String message,
boolean acquire)
- Constructor.
- Parameters:
message
- The error message.acquire
- True if the exception occurred while trying to acquire the lock.
getCauseMessage
public String getCauseMessage()
- Returns:
- The main cause for the exception.
getMessage
public String getMessage()
- Overrides:
getMessage
in class Throwable
- See Also:
Throwable.getMessage()
getOpenErrorMessage
public 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 - 2010.