com.ibm.commerce.edp.api

Class ObjectCannotBeFoundException

    • Constructor Detail

      • ObjectCannotBeFoundException

        public ObjectCannotBeFoundException()

        Default Constructor.

      • ObjectCannotBeFoundException

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

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

        public ObjectCannotBeFoundException(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:
        objectId - 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:
        objectType - 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 after dumping this exception