Oxygen XML Editor, Version ${standalone-version-number}

ro.sync.exml.plugin.lock
Class LockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by 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

Constructor Summary
LockException(String message, boolean acquire)
          Constructor.
 
Method Summary
 String getCauseMessage()
           
 String getMessage()
           
 String getOpenErrorMessage(boolean close)
           
 
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
 

Constructor Detail

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.
Method Detail

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.

Oxygen XML Editor, Version ${standalone-version-number}

© Copyright Syncro Soft SRL 2002 - 2010.