com.sap.netweaver.bc.rf.common.namespace

Class InvalidTargetException

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.namespace.InvalidTargetException
All Implemented Interfaces:
com.sap.exception.IBaseException, Serializable

public class InvalidTargetException
extends ResourceException

An invalid target was used for a copy or move operation.

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.sap.exception.IBaseException
audit, defaultLocale
 
Constructor Summary
InvalidTargetException(IRid rid, IRid invalidTarget)
          Constructs a new exception.
InvalidTargetException(IRid rid, IRid invalidTarget, boolean logExceptionOnCreation)
          Constructs a new exception.
InvalidTargetException(IRid rid, IRid invalidTarget, String message, Throwable rootCause)
          Constructs a new exception.
InvalidTargetException(IRid rid, IRid invalidTarget, String message, Throwable rootCause, boolean logExceptionOnCreation)
          Constructs a new exception.
InvalidTargetException(IRid rid, String message, Object[] args, Throwable rootCause, boolean logExceptionOnCreation, IRid invalidTarget)
          Constructs a new exception.
 
Method Summary
 IRid getInvalidTargetRid()
          Returns the invalid target that caused the exception.
 
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

InvalidTargetException

public InvalidTargetException(IRid rid,
                              IRid invalidTarget)
Constructs a new exception.

Parameters:
rid - The identifier of the resource this exception belongs to.
invalidTarget - The invalid identifier that was supplied by the client.

InvalidTargetException

public InvalidTargetException(IRid rid,
                              IRid invalidTarget,
                              boolean logExceptionOnCreation)
Constructs a new exception.

Parameters:
rid - The identifier of the resource this exception belongs to.
invalidTarget - The invalid identifier that was supplied by the client.
logExceptionOnCreation - when true log the exception now during its construction

InvalidTargetException

public InvalidTargetException(IRid rid,
                              IRid invalidTarget,
                              String message,
                              Throwable rootCause)
Constructs a new exception.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
invalidTarget - The invalid identifier that was supplied by the client.
message - not localized message
rootCause - throwable object which caused this exception

InvalidTargetException

public InvalidTargetException(IRid rid,
                              IRid invalidTarget,
                              String message,
                              Throwable rootCause,
                              boolean logExceptionOnCreation)
Constructs a new exception.

Parameters:
rid - resource id of the resource this exception is associated with (if any)
invalidTarget - The invalid identifier that was supplied by the client.
message - not localized message
rootCause - throwable object which caused this exception
logExceptionOnCreation - when true log the exception now during its construction

InvalidTargetException

public InvalidTargetException(IRid rid,
                              String message,
                              Object[] args,
                              Throwable rootCause,
                              boolean logExceptionOnCreation,
                              IRid invalidTarget)
Constructs a new exception.

Parameters:
rid - The identifier of the resource this exception belongs to.
message - The exception message text (not localized).
args - Exception arguments, can be null .
rootCause - Throwable which caused this exception, can be null .
logExceptionOnCreation - true: Message and stacktrace is logged.
invalidTarget - The invalid identifier that was supplied by the client.
Method Detail

getInvalidTargetRid

public IRid getInvalidTargetRid()
Returns the invalid target that caused the exception. Can be null .

Returns:
the invalid target that caused the exception. Can be null .
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 2011 SAP AG Complete Copyright Notice