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:
Serializable
Exception thrown if several items found instead of one or zero. Used by
ExistingItemResolver to
signalize this case.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class de.hybris.platform.impex.jalo.ImpExException
ImpExException.ErrorCodes -
Constructor Summary
ConstructorsConstructorDescriptionAmbiguousItemException(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. -
Method Summary
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
-
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 itemitems- resulting items (Size is greater than one.)query- query used for searchingsearchValues- values replaced within query
-
-
Method Details
-
getItems
Gets type of searched item.- Returns:
- type of searched item
-
getQuery
Gets query used for searching.- Returns:
- query used for searching
-
getSearchValues
Gets all values replaced within query.- Returns:
- values replaced within query
-
getTargetType
Gets type of searched item.- Returns:
- type of searched item
-