Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / RemoveDocumentsException.java
blob4e0fe1c77f42c0459e46686dc3d974678d575f9a
1 // Copyright 2011 Google Inc. All rights reserved.
2 package com.google.appengine.api.search;
4 import java.util.ArrayList;
5 import java.util.List;
7 /**
8 * Thrown to indicate that a search service failure occurred while deleting
9 * documents.
11 * @deprecated As of 1.6.5, replaced by {@link RemoveException}.
13 @Deprecated
14 public class RemoveDocumentsException extends SearchBaseException {
15 private static final long serialVersionUID = 1877363623092870992L;
17 private final List<OperationResult> results;
19 /**
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
24 * the failure
26 public RemoveDocumentsException(OperationResult operationResult) {
27 this(operationResult, new ArrayList<OperationResult>());
30 /**
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
35 * the failure
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;
45 /**
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() {
50 return results;