com.ibm.commerce.component.exception

Class ServiceParameterError

  • java.lang.Object
    • com.ibm.commerce.component.exception.ServiceParameterError
  • All Implemented Interfaces:
    java.io.Serializable


    public class ServiceParameterError
    extends java.lang.Object
    implements java.io.Serializable
    Represents a single reason in a ServiceException that contains multiple reasons why a request has failed.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor and Description
      ServiceParameterError()
      The do-nothing zero-argument constructor.
      ServiceParameterError(java.lang.String localizedMessage, java.lang.String parameterIdentifier)
      Constructs a ServiceParameterError from a given message and parameter ID.
    • Constructor Detail

      • ServiceParameterError

        public ServiceParameterError()
        The do-nothing zero-argument constructor.
      • ServiceParameterError

        public ServiceParameterError(java.lang.String localizedMessage,
                                     java.lang.String parameterIdentifier)
        Constructs a ServiceParameterError from a given message and parameter ID.
        Parameters:
        localizedMessage - the localized message for this error
        parameterIdentifier - the parameter ID associated with this error
    • Method Detail

      • getLocalizedMessage

        public java.lang.String getLocalizedMessage()
        Gets the localized message.
        Returns:
        the localized message
      • getParameterIdentifier

        public java.lang.String getParameterIdentifier()
        Gets the parameter ID.
        Returns:
        the parameter ID
      • setLocalizedMessage

        public void setLocalizedMessage(java.lang.String localizedMessage)
        Sets the localized message.
        Parameters:
        localizedMessage - the localized message
      • setParameterIdentifier

        public void setParameterIdentifier(java.lang.String parameterIdentifier)
        Sets the parameter ID.
        Parameters:
        parameterIdentifier - the parameter ID