org.apache.jackrabbit.core.version
Class InconsistentVersioningState

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.apache.jackrabbit.core.version.InconsistentVersioningState
All Implemented Interfaces:
Serializable

public class InconsistentVersioningState
extends RuntimeException

The InconsistentVersionControlState 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
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
 NodeId getVersionHistoryNodeId()
           
 
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
 

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 the Throwable.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 the Throwable.getMessage() method.
rootCause - root cause (or otherwise null)
versionHistoryNodeId - NodeId of the version history that has problems (or otherwise null
Method Detail

getVersionHistoryNodeId

public NodeId getVersionHistoryNodeId()
Returns:
the NodeId of the version history having problems or null when unknown.


Copyright © 2004-2013 The Apache Software Foundation. All Rights Reserved.