com.ibm.commerce.edp.api

Class ObjectDeletionException

  • All Implemented Interfaces:
    java.io.Serializable


    public class ObjectDeletionException
    extends J2EEException

    This class represents the exception thrown by the ObjectModelFacade when a request to delete an object fails for reasons other than Object Not Found.

    See Also:
    ObjectCannotBeFoundException, Serialized Form
    • Constructor Detail

      • ObjectDeletionException

        public ObjectDeletionException()

        Default Constructor.

      • ObjectDeletionException

        public ObjectDeletionException(java.lang.String resourceBundleName,
                                       java.lang.String messageKey,
                                       java.lang.Object[] formatArguments,
                                       java.lang.String defaultText)

        Constructor with a localized message.

        Parameters:
        resourceBundleName - the name of the resource bundle to be used to generate a localized exception message
        messageKey - the key to identify the resource to generate a localized exception
        formatArguments - an array of arguments to build the localized message
        defaultText - the message that is shown if the localized message cannot be generated
      • ObjectDeletionException

        public ObjectDeletionException(java.lang.String resourceBundleName,
                                       java.lang.String messageKey,
                                       java.lang.Object[] formatArguments,
                                       java.lang.String defaultText,
                                       java.lang.Throwable exception)

        Constructor with a localized message and a chained exception.

        Parameters:
        resourceBundleName - the name of the resource bundle to be used to generate a localized exception message
        messageKey - the key to identify the resource to generate a localized exception
        formatArguments - an array of arguments to build the localized message
        defaultText - the message that is shown if the localized message cannot be generated
        exception - the exception to be chained
      • ObjectDeletionException

        public ObjectDeletionException(java.lang.Throwable exception)

        Constructor with a chained exception.

        Parameters:
        exception - the exception to be chained
    • Method Detail

      • setObjectId

        public void setObjectId(java.lang.Object localObjectId)

        This method sets the id of the object.

        Parameters:
        localObjectId - the id of the object
      • getObjectId

        public java.lang.String getObjectId()

        This method returns the id of the object.

        Returns:
        The id of the object
      • setObjectType

        public void setObjectType(java.lang.String localObjectType)

        This method sets the type name of the object.

        Parameters:
        localObjectType - The type name of the object
      • getObjectType

        public java.lang.String getObjectType()

        This method returns the type name of the object.

        Returns:
        The type name of the object
      • dumpException

        public java.lang.String dumpException()
        This method dumps this exception.
        Overrides:
        dumpException in class BaseException
        Returns:
        String The string representation of this exception