Class InconsistentVersioningState
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.jackrabbit.core.version.InconsistentVersioningState
-
- All Implemented Interfaces:
Serializable
public class InconsistentVersioningState extends RuntimeException
TheInconsistentVersionControlState
is used to signal inconsistencies in the versioning related state of a node, such as missing mandatory properties, missing version nodes, etc.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description InconsistentVersioningState(String message)
Constructs a new instance of this class with the specified detail message.InconsistentVersioningState(String message, NodeId versionHistoryNodeId, Throwable rootCause)
Constructs a new instance of this class with the specified detail message.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NodeId
getVersionHistoryNodeId()
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
InconsistentVersioningState
public InconsistentVersioningState(String message)
Constructs a new instance of this class with the specified detail message.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.
-
InconsistentVersioningState
public InconsistentVersioningState(String message, NodeId versionHistoryNodeId, Throwable rootCause)
Constructs a new instance of this class with the specified detail message.- Parameters:
message
- the detail message. The detail message is saved for later retrieval by theThrowable.getMessage()
method.rootCause
- root cause (or otherwisenull
)versionHistoryNodeId
- NodeId of the version history that has problems (or otherwisenull
-
-
Method Detail
-
getVersionHistoryNodeId
public NodeId getVersionHistoryNodeId()
- Returns:
- the NodeId of the version history having problems or
null
when unknown.
-
-