public class AmbiguousItemException extends ImpExException
ExistingItemResolver to
signalize this case.ImpExException.ErrorCodes| Constructor and 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.
|
| Modifier and Type | Method and 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.
|
getErrorCode, getThrowable, toStringpublic AmbiguousItemException(ComposedType targetType, java.util.Collection<Item> items, java.lang.String query, java.util.Map<java.lang.String,java.lang.Object> searchValues)
targetType - type of searched itemitems - resulting items (Size is greater than one.)query - query used for searchingsearchValues - values replaced within querypublic java.util.Collection<Item> getItems()
public java.lang.String getQuery()
public java.util.Map<java.lang.String,java.lang.Object> getSearchValues()
public ComposedType getTargetType()
Copyright © 2018 SAP SE. All Rights Reserved.