Enum Class ErrorCode

java.lang.Object
java.lang.Enum<ErrorCode>
de.hybris.platform.dataimportcommons.facades.ErrorCode
All Implemented Interfaces:
Serializable, Comparable<ErrorCode>, Constable

public enum ErrorCode extends Enum<ErrorCode>
All possible error codes reported from the import service.
  • Enum Constant Details

    • MISSING_REQUIRED_ATTRIBUTE

      public static final ErrorCode MISSING_REQUIRED_ATTRIBUTE
      An error when one of the required attribute values is not present in the impex file.
    • UNKNOWN_ATTRIBUTE

      public static final ErrorCode UNKNOWN_ATTRIBUTE
      Indicates that an attribute declared in the impex header does not exist.
    • NOT_EXISTING_ITEM

      public static final ErrorCode NOT_EXISTING_ITEM
      The item specified by a data row cannot be found in the system.
    • REFERENCE_VIOLATION

      public static final ErrorCode REFERENCE_VIOLATION
      The attribute value referring another item or enum value does not exist.
    • UNIQUE_KEY_VIOLATION

      public static final ErrorCode UNIQUE_KEY_VIOLATION
      The item being imported violates a primary/unique key on already existing item.
    • NOT_ENOUGH_ATTRIBUTE_VALUES

      public static final ErrorCode NOT_ENOUGH_ATTRIBUTE_VALUES
      The compound attribute value does not provide all parts of the value.
    • INVALID_DATA_FORMAT

      public static final ErrorCode INVALID_DATA_FORMAT
      The provided value is not matching either the declared data type or the required format for the value.
    • MORE_THAN_ONE_ITEM_FOUND

      public static final ErrorCode MORE_THAN_ONE_ITEM_FOUND
      Finds more than one items to update matching the data row.
    • UNKNOWN_TYPE

      public static final ErrorCode UNKNOWN_TYPE
      Item type specified in the impex block header does not exist in the system.
    • HEADER_NOT_FOUND

      public static final ErrorCode HEADER_NOT_FOUND
      The header record for a data block is not recognized or not present.
    • NO_VARIANT_TYPE

      public static final ErrorCode NO_VARIANT_TYPE
      The base product type cannot be resolved for a variant data record.
    • CANNOT_REMOVE_ITEM

      public static final ErrorCode CANNOT_REMOVE_ITEM
      The item cannot be deleted.
    • UNCLASSIFIED

      public static final ErrorCode UNCLASSIFIED
      Indicates a problem that could not be classified. This error code has no scope defined.
  • Method Details

    • values

      public static ErrorCode[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ErrorCode valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • classify

      public static ErrorCode classify(String msg)
      Classifies the error based on the error message submitted.
      Parameters:
      msg - an error message to analyze.
      Returns:
      an error code matching the problem described by the message or UNCLASSIFIED error, if the error could not be classified.
    • getType

      public ErrorType getType()
      Retrieves type of this error code.
      Returns:
      type for this error code