Class ItemConflictException

All Implemented Interfaces:
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:
  • Constructor Details

    • ItemConflictException

      @Deprecated(since="ages", forRemoval=false) public ItemConflictException(Item existingItem, ValueLine line)
      Deprecated.
      since ages - useItemConflictException(PK, ValueLine) instead
      Creates a new exception which indicates an item conflict.
      Parameters:
      existingItem - existing item with same mandatory attribute values as given value line
      line - 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 line
      line - value line which defines the attributes for a new item creation
  • Method Details

    • getExistingItem

      @Deprecated(since="ages", forRemoval=false) public Item getExistingItem()
      Deprecated.
      since ages
      Gets 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