1 // Copyright 2011 Google Inc. All rights reserved.
2 package com
.google
.appengine
.api
.search
;
4 import java
.util
.ArrayList
;
8 * Thrown to indicate that a search service failure occurred while deleting
11 * @deprecated As of 1.6.5, replaced by {@link RemoveException}.
14 public class RemoveDocumentsException
extends SearchBaseException
{
15 private static final long serialVersionUID
= 1877363623092870992L;
17 private final List
<OperationResult
> results
;
20 * Constructs an exception when some error occurred in
21 * the search service whilst processing a remove documents operation.
23 * @param operationResult the error code and message detail associated with
26 public RemoveDocumentsException(OperationResult operationResult
) {
27 this(operationResult
, new ArrayList
<OperationResult
>());
31 * Constructs an exception when some error occurred in
32 * the search service whilst processing a remove documents operation.
34 * @param operationResult the error code and message detail associated with
36 * @param results the list of {@link OperationResult} where each result is
37 * associated with the id of a document that was requested to be removed
39 public RemoveDocumentsException(OperationResult operationResult
,
40 List
<OperationResult
> results
) {
41 super(operationResult
);
42 this.results
= results
;
46 * @return the list of {@link OperationResult} where each result is
47 * associated with the id of a document that was requested to be removed
49 public List
<OperationResult
> getResults() {