Class AmbiguousItemException
- 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.AmbiguousItemException
-
- All Implemented Interfaces:
java.io.Serializable
public class AmbiguousItemException extends ImpExException
Exception thrown if several items found instead of one or zero. Used byExistingItemResolver
to signalize this case.- 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 AmbiguousItemException(ComposedType targetType, java.util.Collection<Item> items, java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> searchValues)
Constructs a new Exception with information about searched type and used query, as well as resulting items.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Collection<Item>
getItems()
Gets type of searched item.java.lang.String
getQuery()
Gets query used for searching.java.util.Map<java.lang.String,java.lang.Object>
getSearchValues()
Gets all values replaced within query.ComposedType
getTargetType()
Gets type of searched item.-
Methods inherited from class de.hybris.platform.jalo.JaloBusinessException
getErrorCode, getThrowable, toString
-
-
-
-
Constructor Detail
-
AmbiguousItemException
public AmbiguousItemException(ComposedType targetType, java.util.Collection<Item> items, java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> searchValues)
Constructs a new Exception with information about searched type and used query, as well as resulting items.- Parameters:
targetType
- type of searched itemitems
- resulting items (Size is greater than one.)query
- query used for searchingsearchValues
- values replaced within query
-
-
Method Detail
-
getItems
public java.util.Collection<Item> getItems()
Gets type of searched item.- Returns:
- type of searched item
-
getQuery
public java.lang.String getQuery()
Gets query used for searching.- Returns:
- query used for searching
-
getSearchValues
public java.util.Map<java.lang.String,java.lang.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
-
-