public class AmbiguousItemException extends ImpExException
ExistingItemResolver to
signalize this case.ImpExException.ErrorCodes| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Item> |
getItems()
Gets type of searched item.
|
String |
getQuery()
Gets query used for searching.
|
Map<String,Object> |
getSearchValues()
Gets all values replaced within query.
|
ComposedType |
getTargetType()
Gets type of searched item.
|
getErrorCode, getThrowable, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic AmbiguousItemException(ComposedType targetType, Collection<Item> items, String query, Map<String,Object> searchValues)
targetType - type of searched itemitems - resulting items (Size is greater than one.)query - query used for searchingsearchValues - values replaced within querypublic Collection<Item> getItems()
public String getQuery()
public Map<String,Object> getSearchValues()
public ComposedType getTargetType()
Copyright © 2017 SAP SE. All Rights Reserved.