| Enum Constant and Description |
|---|
CANNOT_REMOVE_ITEM
The item cannot be deleted.
|
HEADER_NOT_FOUND
The header record for a data block is not recognized or not present.
|
INVALID_DATA_FORMAT
The provided value is not matching either the declared data type or the required format for the value.
|
MISSING_REQUIRED_ATTRIBUTE
An error when one of the required attribute values is not present in the impex file.
|
MORE_THAN_ONE_ITEM_FOUND
Finds more than one items to update matching the data row.
|
NO_VARIANT_TYPE
The base product type cannot be resolved for a variant data record.
|
NOT_ENOUGH_ATTRIBUTE_VALUES
The compound attribute value does not provide all parts of the value.
|
NOT_EXISTING_ITEM
The item specified by a data row cannot be found in the system.
|
REFERENCE_VIOLATION
The attribute value referring another item or enum value does not exist.
|
UNCLASSIFIED
Indicates a problem that could not be classified.
|
UNIQUE_KEY_VIOLATION
The item being imported violates a primary/unique key on already existing item.
|
UNKNOWN_ATTRIBUTE
Indicates that an attribute declared in the impex header does not exist.
|
UNKNOWN_TYPE
Item type specified in the impex block header does not exist in the system.
|
| Modifier and Type | Method and Description |
|---|---|
static ErrorCode |
classify(java.lang.String msg)
Classifies the error based on the error message submitted.
|
ErrorType |
getType()
Retrieves type of this error code.
|
static ErrorCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ErrorCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ErrorCode MISSING_REQUIRED_ATTRIBUTE
public static final ErrorCode UNKNOWN_ATTRIBUTE
public static final ErrorCode NOT_EXISTING_ITEM
public static final ErrorCode REFERENCE_VIOLATION
public static final ErrorCode UNIQUE_KEY_VIOLATION
public static final ErrorCode NOT_ENOUGH_ATTRIBUTE_VALUES
public static final ErrorCode INVALID_DATA_FORMAT
public static final ErrorCode MORE_THAN_ONE_ITEM_FOUND
public static final ErrorCode UNKNOWN_TYPE
public static final ErrorCode HEADER_NOT_FOUND
public static final ErrorCode NO_VARIANT_TYPE
public static final ErrorCode CANNOT_REMOVE_ITEM
public static final ErrorCode UNCLASSIFIED
public static ErrorCode[] values()
for (ErrorCode c : ErrorCode.values()) System.out.println(c);
public static ErrorCode valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static ErrorCode classify(java.lang.String msg)
msg - an error message to analyze.UNCLASSIFIED error, if the
error could not be classified.public ErrorType getType()
Copyright © 2018 SAP SE. All Rights Reserved.