com.sap.netweaver.bc.rf.common.version

Class VersionHistoryInUseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sap.exception.BaseException
              extended by com.sap.netweaver.bc.rf.util.exception.BaseException
                  extended by com.sap.netweaver.bc.rf.common.exception.RepositoryException
                      extended by com.sap.netweaver.bc.rf.common.exception.ResourceException
                          extended by com.sap.netweaver.bc.rf.common.version.VersionHistoryInUseException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable

public class VersionHistoryInUseException
extends ResourceException

Thrown if someone tries to create a VCR in a workspace that already contains a VCR with the same version history.

Copyright (c) SAP AG 2002-2004

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
VersionHistoryInUseException(IRid rid, IRid conflictVcr)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, boolean logExceptionOnCreation)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, boolean logExceptionOnCreation)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, Object[] args)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, Object[] args, boolean logExceptionOnCreation)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, Object[] args, Throwable rootCause)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, Object[] args, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, Throwable rootCause)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, String message, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, Throwable rootCause)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(IRid rid, IRid conflictVcr, Throwable rootCause, boolean logExceptionOnCreation)
          Construct object of class VersionHistoryInUseException.
VersionHistoryInUseException(String msg, IRid version, IRid conflictVcr)
          Deprecated. Use VersionHistoryInUseException(IRid, IRid, String) instead
 
Method Summary
 IRid getConflictingRid()
           
 
Methods inherited from class com.sap.netweaver.bc.rf.common.exception.ResourceException
getRID
 
Methods inherited from class com.sap.exception.BaseException
finallyLocalize, finallyLocalize, finallyLocalize, finallyLocalize, getCause, getLocalizableMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLocalizedMessage, getLogCategory, getLogLocation, getLogSeverity, getMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedLocalizedMessage, getNestedStackTraceString, getStackTraceString, getSystemStackTraceString, initCause, log, printStackTrace, printStackTrace, printStackTrace, restoreLogSettings, setLogSettings, trace, trace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

VersionHistoryInUseException

public VersionHistoryInUseException(String msg,
                                    IRid version,
                                    IRid conflictVcr)
Deprecated. Use VersionHistoryInUseException(IRid, IRid, String) instead

Constructs a VersionHistoryInUseException to indicate that the current operation would result in a workspace containing two VCRs based on the same version history.


VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    boolean logExceptionOnCreation)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
logExceptionOnCreation - when true log the exception now during its construction

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    Throwable rootCause)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
rootCause - throwable object which caused this exception

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    Throwable rootCause,
                                    boolean logExceptionOnCreation)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    Object[] args)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
args - message arguments inserted by MessageFormat means

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    Throwable rootCause)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
rootCause - throwable object which caused this exception

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    Object[] args,
                                    Throwable rootCause)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    boolean logExceptionOnCreation)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
logExceptionOnCreation - when true log the exception now during its construction

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    Object[] args,
                                    boolean logExceptionOnCreation)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
args - message arguments inserted by MessageFormat means
logExceptionOnCreation - when true log the exception now during its construction

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    Throwable rootCause,
                                    boolean logExceptionOnCreation)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

VersionHistoryInUseException

public VersionHistoryInUseException(IRid rid,
                                    IRid conflictVcr,
                                    String message,
                                    Object[] args,
                                    Throwable rootCause,
                                    boolean logExceptionOnCreation)
Construct object of class VersionHistoryInUseException.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
conflictVcr - The existing VCR that that conflicts with the required operation.
message - not localized message
args - message arguments inserted by MessageFormat means
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction
Method Detail

getConflictingRid

public IRid getConflictingRid()
Returns:
the IRid of the workspace controlled VCR that causes the conflict (may be null if not supplied by server).
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] KMC-CM [sap.com] tc/km/frwk api EP-KM-CM


Copyright 2011 SAP AG Complete Copyright Notice