Class AmbiguousItemException

All Implemented Interfaces:
Serializable

public class AmbiguousItemException extends ImpExException
Exception thrown if several items found instead of one or zero. Used by ExistingItemResolver to signalize this case.
See Also:
  • Constructor Details

    • AmbiguousItemException

      public AmbiguousItemException(ComposedType targetType, Collection<Item> items, String query, Map<String,Object> searchValues)
      Constructs a new Exception with information about searched type and used query, as well as resulting items.
      Parameters:
      targetType - type of searched item
      items - resulting items (Size is greater than one.)
      query - query used for searching
      searchValues - values replaced within query
  • Method Details

    • getItems

      public Collection<Item> getItems()
      Gets type of searched item.
      Returns:
      type of searched item
    • getQuery

      public String getQuery()
      Gets query used for searching.
      Returns:
      query used for searching
    • getSearchValues

      public Map<String,Object> getSearchValues()
      Gets all values replaced within query.
      Returns:
      values replaced within query
    • getTargetType

      public ComposedType getTargetType()
      Gets type of searched item.
      Returns:
      type of searched item