Class ConfigError

java.lang.Object
com.broadleafcommerce.cart.client.domain.ConfigError
All Implemented Interfaces:
Serializable

public class ConfigError extends Object implements Serializable
Used to inform what configuration errors may exist on a cart item via CartItem.getAttributeConfigErrors() and CartItem.getGlobalConfigErrors()
Author:
Chad Harchar (charchar)
See Also:
  • Constructor Details

    • ConfigError

      public ConfigError()
    • ConfigError

      public ConfigError(String errorCode, String errorMessage)
  • Method Details

    • getErrorCode

      public String getErrorCode()
      The error code for this configuration error. Intended to be used with auditing or mapping to a human readable explanation.
      Returns:
      The error code for this configuration error. Intended to be used with auditing or mapping to a human readable explanation.
    • getErrorMessage

      public String getErrorMessage()
      The error message for this configuration error. Intended to be shown to the customer as a human readable explanation.
      Returns:
      The error message for this configuration error. Intended to be shown to the customer as a human readable explanation.
    • setErrorCode

      public void setErrorCode(String errorCode)
      The error code for this configuration error. Intended to be used with auditing or mapping to a human readable explanation.
      Parameters:
      errorCode - The error code for this configuration error. Intended to be used with auditing or mapping to a human readable explanation.
    • setErrorMessage

      public void setErrorMessage(String errorMessage)
      The error message for this configuration error. Intended to be shown to the customer as a human readable explanation.
      Parameters:
      errorMessage - The error message for this configuration error. Intended to be shown to the customer as a human readable explanation.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object