Package javax.jcr.lock
Class LockException
java.lang.Object
java.lang.Throwable
java.lang.Exception
javax.jcr.RepositoryException
javax.jcr.lock.LockException
- All Implemented Interfaces:
Serializable
Exception thrown by when a lock-related error occurs.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConstructs a new instance of this class.LockException(String message) Constructs a new instance of this class with the specified detail message.LockException(String message, Throwable rootCause) Constructs a new instance of this class with the specified detail message and root cause.LockException(String message, Throwable rootCause, String failureNodePath) Constructs a new instance of this class with the specified detail message, root cause and failure node path.LockException(Throwable rootCause) Constructs a new instance of this class with the specified root cause. -
Method Summary
Modifier and TypeMethodDescriptionReturns the absolute path of the node that caused the error ornullif the implementation chooses not to, or cannot, return a path.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
LockException
public LockException()Constructs a new instance of this class. -
LockException
Constructs a new instance of this class with the specified detail message.- Parameters:
message- the detail message.
-
LockException
Constructs a new instance of this class with the specified root cause.- Parameters:
rootCause- the root failure cause.
-
LockException
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
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 ornullif 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 Details
-
getFailureNodePath
Returns the absolute path of the node that caused the error ornullif the implementation chooses not to, or cannot, return a path.- Returns:
- path of the node that caused the error
-