javax.jcr.lock
Class LockException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.jcr.RepositoryException
              extended by javax.jcr.lock.LockException
All Implemented Interfaces:
java.io.Serializable

public class LockException
extends RepositoryException

Exception thrown by when a lock-related error occurs.

See Also:
Serialized Form

Field Summary
private  java.lang.String failureNodePath
           
 
Constructor Summary
LockException()
          Constructs a new instance of this class.
LockException(java.lang.String message)
          Constructs a new instance of this class with the specified detail message.
LockException(java.lang.String message, java.lang.Throwable rootCause)
          Constructs a new instance of this class with the specified detail message and root cause.
LockException(java.lang.String message, java.lang.Throwable rootCause, java.lang.String failureNodePath)
          Constructs a new instance of this class with the specified detail message, root cause and failure node path.
LockException(java.lang.Throwable rootCause)
          Constructs a new instance of this class with the specified root cause.
 
Method Summary
 java.lang.String getFailureNodePath()
          Returns the absolute path of the node that caused the error or null if the implementation chooses not to, or cannot, return a path.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

failureNodePath

private final java.lang.String failureNodePath
Constructor Detail

LockException

public LockException()
Constructs a new instance of this class.


LockException

public LockException(java.lang.String message)
Constructs a new instance of this class with the specified detail message.

Parameters:
message - the detail message.

LockException

public LockException(java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified root cause.

Parameters:
rootCause - the root failure cause.

LockException

public LockException(java.lang.String message,
                     java.lang.Throwable rootCause)
Constructs a new instance of this class with the specified detail message and root cause.

Parameters:
message - the detail message.
rootCause - the root failure cause.

LockException

public LockException(java.lang.String message,
                     java.lang.Throwable rootCause,
                     java.lang.String failureNodePath)
Constructs a new instance of this class with the specified detail message, root cause and failure node path.

Parameters:
message - the detail message.
rootCause - the root failure cause.
failureNodePath - the absolute path of the node that caused the error or null if the implementation chooses not to, or cannot, return a path.

If a path is passed it must be an absolute path in normalized, standard form, that is, each path segment must be a JCR name in qualified form, the path must have no trailing slash, no self or parent segments and no [1] indexes.

Method Detail

getFailureNodePath

public java.lang.String getFailureNodePath()
Returns the absolute path of the node that caused the error or null if the implementation chooses not to, or cannot, return a path.

Returns:
path of the node that caused the error