Class ItemConflictException
java.lang.Object
java.lang.Throwable
java.lang.Exception
de.hybris.platform.jalo.JaloBusinessException
de.hybris.platform.impex.jalo.ImpExException
de.hybris.platform.impex.jalo.imp.ItemConflictException
- All Implemented Interfaces:
Serializable
Exception thrown if you want to create an item where an item with same mandatory attributes already exists.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.impex.jalo.ImpExException
ImpExException.ErrorCodes -
Constructor Summary
ConstructorsConstructorDescriptionItemConflictException(PK existingItemPk, ValueLine line) Creates a new exception which indicates an item PK conflict.ItemConflictException(Item existingItem, ValueLine line) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.since agesgetLine()Gets the value line which defines the attributes for a new item creation and are in conflict to the existing item.Methods inherited from class de.hybris.platform.jalo.JaloBusinessException
getErrorCode, getThrowable, toStringMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ItemConflictException
@Deprecated(since="ages", forRemoval=false) public ItemConflictException(Item existingItem, ValueLine line) Deprecated.since ages - useItemConflictException(PK, ValueLine)insteadCreates a new exception which indicates an item conflict.- Parameters:
existingItem- existing item with same mandatory attribute values as given value lineline- value line which defines the attributes for a new item creation
-
ItemConflictException
Creates a new exception which indicates an item PK conflict.- Parameters:
existingItemPk- existing item with same mandatory attribute values as given value lineline- value line which defines the attributes for a new item creation
-
-
Method Details
-
getExistingItem
Deprecated.since agesGets existing item with same mandatory attribute values as the value line.- Returns:
- the existing item
-
getExistingItemPk
-
getLine
Gets the value line which defines the attributes for a new item creation and are in conflict to the existing item.- Returns:
- the value line for item creation
-
ItemConflictException(PK, ValueLine)instead