com.ibm.commerce.edp.api

Class ObjectAlreadyExistsException

  • All Implemented Interfaces:
    java.io.Serializable


    public class ObjectAlreadyExistsException
    extends InputException

    This method represents the exception thrown by the ObjectModelFacade. It's thrown when a request to create an object fails because an object already exists with the target primary key.

    See Also:
    Serialized Form
    • Constructor Detail

      • ObjectAlreadyExistsException

        public ObjectAlreadyExistsException()

        Default Constructor.

      • ObjectAlreadyExistsException

        public ObjectAlreadyExistsException(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
      • ObjectAlreadyExistsException

        public ObjectAlreadyExistsException(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
      • ObjectAlreadyExistsException

        public ObjectAlreadyExistsException(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 object ID.
        Parameters:
        objectId - The object ID to set
      • getObjectId

        public java.lang.String getObjectId()
        This method returns the object ID.
        Returns:
        String The object ID
      • setObjectType

        public void setObjectType(java.lang.String localObjectType)
        This method sets the object type.
        Parameters:
        localObjectType - The object type to set
      • getObjectType

        public java.lang.String getObjectType()
        This method returns the object type.
        Returns:
        The object type
      • dumpException

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