com.sapportals.portal.pcd.gl

Class PcdNamingException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by javax.naming.NamingException
              extended by com.sapportals.portal.pcd.gl.PcdNamingException
All Implemented Interfaces:
IExceptionSequence, Serializable
Direct Known Subclasses:
InvalidDeltaLinkTargetException, LockingException, PcdInconsistentUpdateException, PcdObjectInvalidatedException, VersionControlException, WriteProtectException

public class PcdNamingException
extends NamingException
implements IExceptionSequence

This exception is thrown when ...

See Also:
Serialized Form

Field Summary
 
Fields inherited from class javax.naming.NamingException
remainingName, resolvedName, resolvedObj, rootException
 
Constructor Summary
PcdNamingException()
          Exception wrapper constructor.
PcdNamingException(String s)
          Constructor with a String message.
PcdNamingException(String s, String nameInNamespace)
          Constructor with a String message.
PcdNamingException(String s, String nameInNamespace, Throwable exception)
          Exception wrapper constructor.
PcdNamingException(String s, Throwable exception)
          Exception wrapper constructor.
PcdNamingException(Throwable exception)
          Exception wrapper constructor.
 
Method Summary
 void addException(IExceptionSequence exception)
          Adds another exeption to the seqeunce.
 Throwable getCause()
          Returns the cause of this exception.
 Throwable getException()
          Gets the original exception which can be null.
 String getMessage()
           
 IExceptionSequence getNextException()
          Returns the next exception of the sequence
 Iterator getNextExceptions()
          Returns the next exceptions as iterator.
 String getObjectName()
          Returns the name of the object for which the operation failed.
 boolean hasNextException()
          Returns if there are more exception in the sequence.
 boolean operationPartiallyCompleted()
          Returns if the operation was partially completed, e. g. if some objects could be deleted in a recursive delete operation.
 void setException(Throwable t)
          Sets the original exception
 void setPartialCompletion(boolean partialCompletion)
          Set partial completion flag
 
Methods inherited from class javax.naming.NamingException
appendRemainingComponent, appendRemainingName, getExplanation, getRemainingName, getResolvedName, getResolvedObj, getRootCause, initCause, setRemainingName, setResolvedName, setResolvedObj, setRootCause, toString, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getLocalizedMessage, getStackTrace, printStackTrace, printStackTrace, printStackTrace, setStackTrace
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PcdNamingException

public PcdNamingException()
Exception wrapper constructor.


PcdNamingException

public PcdNamingException(String s,
                          Throwable exception)
Exception wrapper constructor.

Parameters:
s - a short String describing the exception
exception - a Throwable object referring to the original exception

PcdNamingException

public PcdNamingException(String s,
                          String nameInNamespace,
                          Throwable exception)
Exception wrapper constructor.

Parameters:
s - a short String describing the exception
nameInNamespace - PCD name
exception - a Throwable object referring to the original exception

PcdNamingException

public PcdNamingException(String s)
Constructor with a String message.

Parameters:
s - a short description of the exception.

PcdNamingException

public PcdNamingException(String s,
                          String nameInNamespace)
Constructor with a String message.

Parameters:
s - a short description of the exception.
nameInNamespace -

PcdNamingException

public PcdNamingException(Throwable exception)
Exception wrapper constructor.

Parameters:
exception - a Throwable object referring to the original exception.
Method Detail

getException

public Throwable getException()
Gets the original exception which can be null.

Returns:
the original exception

setException

public final void setException(Throwable t)
Sets the original exception

Parameters:
t - the orginal exception

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
String

getCause

public Throwable getCause()
Returns the cause of this exception.

Overrides:
getCause in class NamingException
Returns:
Throwable the cause of this exception

getObjectName

public String getObjectName()
Description copied from interface: IExceptionSequence
Returns the name of the object for which the operation failed.

Specified by:
getObjectName in interface IExceptionSequence
Returns:
Absolute name of the object for which the operation failed
See Also:
IExceptionSequence.getObjectName()

addException

public void addException(IExceptionSequence exception)
Description copied from interface: IExceptionSequence
Adds another exeption to the seqeunce.

Specified by:
addException in interface IExceptionSequence
Parameters:
exception - Exception
See Also:
IExceptionSequence.addException(com.sapportals.portal.pcd.gl.IExceptionSequence)

hasNextException

public boolean hasNextException()
Description copied from interface: IExceptionSequence
Returns if there are more exception in the sequence.

Specified by:
hasNextException in interface IExceptionSequence
Returns:
True if there are more exceptions
See Also:
IExceptionSequence.hasNextException()

getNextException

public IExceptionSequence getNextException()
Description copied from interface: IExceptionSequence
Returns the next exception of the sequence

Specified by:
getNextException in interface IExceptionSequence
Returns:
Next exception
See Also:
IExceptionSequence.getNextException()

getNextExceptions

public Iterator getNextExceptions()
Description copied from interface: IExceptionSequence
Returns the next exceptions as iterator.

Specified by:
getNextExceptions in interface IExceptionSequence
Returns:
Iterator of all exceptions
See Also:
IExceptionSequence.getNextExceptions()

setPartialCompletion

public void setPartialCompletion(boolean partialCompletion)
Description copied from interface: IExceptionSequence
Set partial completion flag

Specified by:
setPartialCompletion in interface IExceptionSequence
Parameters:
partialCompletion - True if some operations succeeded
See Also:
IExceptionSequence.setPartialCompletion(boolean)

operationPartiallyCompleted

public boolean operationPartiallyCompleted()
Description copied from interface: IExceptionSequence
Returns if the operation was partially completed, e. g. if some objects could be deleted in a recursive delete operation.

Specified by:
operationPartiallyCompleted in interface IExceptionSequence
Returns:
True if the operation was parially completed.
See Also:
IExceptionSequence.operationPartiallyCompleted()
Access Rights

This class can be accessed from:


SC DC Public Part ACH
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api - EP-PIN
[sap.com] KMC-WPC [sap.com] tc/kmc/wpc/wpcfacade api EP-PIN-WPC-WCM
[sap.com] EP-BASIS-API [sap.com] tc/epbc/pcd/gl/api api EP-PIN
[sap.com] EP-BASIS [sap.com] tc/epbc/pcd/pars/srvgldeprecated api BC-PIN-PCD


Copyright 2011 SAP AG Complete Copyright Notice