Oxygen XML Editor, Version 14.2

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:
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.
 
Method Summary
 java.lang.String getCauseMessage()
           
 java.lang.String getDetailedMessage()
           
 java.lang.String getMessage()
           
 java.lang.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(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.
Method Detail

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.

Oxygen XML Editor, Version 14.2

© Copyright Syncro Soft SRL 2002 - 2013. All rights reserved.