Exception PutException (2.0.0)

public class PutException extends SearchBaseException

Thrown to indicate that a search service failure occurred while putting objects into the index.

Constructors

PutException(OperationResult operationResult)

public PutException(OperationResult operationResult)

Constructs an exception when some error occurred in the search service when putting some objects into the index.

Parameter
Name Description
operationResult OperationResult

the error code and message detail associated with the failure

PutException(OperationResult operationResult, List<OperationResult> results, List<String> ids)

public PutException(OperationResult operationResult, List<OperationResult> results, List<String> ids)

Constructs an exception when some error occurred in the search service when putting some objects to the index.

Parameters
Name Description
operationResult OperationResult

the error code and message detail associated with the failure

results List<OperationResult>

the list of OperationResult where each result is associated with an object that was requested to be put into the index

ids List<String>

the list of Ids of the object requested to be put into the index. The search service may provide an Id if none was given for an object

Methods

getIds()

public List<String> getIds()
Returns
Type Description
List<String>

the list of Ids of objects that were requested to be put into the index

getResults()

public List<OperationResult> getResults()
Returns
Type Description
List<OperationResult>

the list of OperationResult where each result is associated with a request to be put an object into the index