com.ibm.commerce.edp.api

Class InvalidDataException

    • Constructor Detail

      • InvalidDataException

        public InvalidDataException()

        Default Constructor.

      • InvalidDataException

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

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

        public InvalidDataException(java.lang.Throwable exception)

        Constructor with a chained exception.

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

      • setInvalidAttributeName

        public void setInvalidAttributeName(java.lang.String localInvalidAttributeName)

        This method sets the name of the invalid attribute.

        Parameters:
        localInvalidAttributeName - the name of the invalid attribute
      • getInvalidAttributeName

        public java.lang.String getInvalidAttributeName()

        This method returns the name of the invalid attribute.

        Returns:
        The name of the invalid attribute
      • setInvalidAttributeType

        public void setInvalidAttributeType(java.lang.String localInvalidAttributeType)

        This method sets the type of the invalid attribute.

        Parameters:
        localInvalidAttributeType - the type of the invalid attribute
      • getInvalidAttributeType

        public java.lang.String getInvalidAttributeType()

        This method returns the type of the invalid attribute.

        Returns:
        The type of the invalid attribute
      • setInvalidAttributeValue

        public void setInvalidAttributeValue(java.lang.Object localInvalidAttributeValue)

        This method sets the value of the invalid attribute.

        Parameters:
        localInvalidAttributeValue - the value of the invalid attribute
      • getInvalidAttributeValue

        public java.lang.String getInvalidAttributeValue()

        This method returns the value of the invalid attribute.

        Returns:
        The value of the invalid attribute
      • dumpException

        public java.lang.String dumpException()
        This method converts exception into a human-readable format.
        Overrides:
        dumpException in class BaseException
        Returns:
        a human-readable text describing the exception and its details