com.sapportals.wcm.repository

Class LinkLoopException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.sapportals.wcm.WcmException
              extended by com.sapportals.wcm.util.content.ContentException
                  extended by com.sapportals.wcm.repository.ResourceException
                      extended by com.sapportals.wcm.repository.LinkLoopException
All Implemented Interfaces:
Serializable

public class LinkLoopException
extends ResourceException

The target RID specified when creating or updating am internal link is also a link and would cause an loop. That means it would not be possible to resolve the target resource because two or more links would be pointing at each other.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.sapportals.wcm.WcmException
ex
 
Constructor Summary
LinkLoopException(LinkLoopException newEx)
          This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.
LinkLoopException(RID invalidLinkTarget)
          Constructs a new exception
LinkLoopException(String msg, RID invalidLinkTarget)
          Constructs a new exception
LinkLoopException(String msg, RID rid, RID invalidLinkTarget)
          Constructs a new exception
 
Method Summary
 RID getLinkTargetRID()
          Returns the link target that caused the exception.
 
Methods inherited from class com.sapportals.wcm.repository.ResourceException
fillInStackTrace, getLocalizedMessage, getMessage, getNextResourceException, getResourceID, getRID, printStackTrace, printStackTrace, printStackTrace, setNextResourceException, toString
 
Methods inherited from class com.sapportals.wcm.WcmException
getContainedException, isLogged, setContainedException
 
Methods inherited from class java.lang.Throwable
getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LinkLoopException

public LinkLoopException(RID invalidLinkTarget)
Constructs a new exception

Parameters:
invalidLinkTarget - The invalid target resource ID

LinkLoopException

public LinkLoopException(String msg,
                         RID invalidLinkTarget)
Constructs a new exception

Parameters:
msg - The message text
invalidLinkTarget - The invalid target resource ID

LinkLoopException

public LinkLoopException(String msg,
                         RID rid,
                         RID invalidLinkTarget)
Constructs a new exception

Parameters:
msg - The message text
rid - RID of affected recource
invalidLinkTarget - The invalid target resource ID

LinkLoopException

public LinkLoopException(LinkLoopException newEx)
This constructor is used by the framework to use this exception as a wrapper for a new exception class of the repository manager API.

Parameters:
newEx - The new exception.
Method Detail

getLinkTargetRID

public RID getLinkTargetRID()
Returns the link target that caused the exception. Can be null .

Returns:
linkTargetRID
Access Rights

This class can be accessed from:


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


Copyright 2014 SAP AG Complete Copyright Notice