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:
java.io.Serializable
public class ItemConflictException extends ImpExException
Exception thrown if you want to create an item where an item with same mandatory attributes already exists.- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class de.hybris.platform.impex.jalo.ImpExException
ImpExException.ErrorCodes
-
-
Constructor Summary
Constructors Constructor Description ItemConflictException(PK existingItemPk, ValueLine line)Creates a new exception which indicates an item PK conflict.ItemConflictException(Item existingItem, ValueLine line)Deprecated.since ages - useItemConflictException(PK, ValueLine)instead
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ItemgetExistingItem()Deprecated.since agesPKgetExistingItemPk()ValueLinegetLine()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, toString
-
-
-
-
Constructor Detail
-
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
public ItemConflictException(PK existingItemPk, ValueLine line)
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 Detail
-
getExistingItem
@Deprecated(since="ages", forRemoval=false) public Item getExistingItem()Deprecated.since agesGets existing item with same mandatory attribute values as the value line.- Returns:
- the existing item
-
getExistingItemPk
public PK getExistingItemPk()
-
getLine
public ValueLine 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
-
-