Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / ListDocumentsException.java
blob235cda5a624b268dcf94f5ac37da9e01e3350753
1 // Copyright 2011 Google Inc. All rights reserved.
2 package com.google.appengine.api.search;
4 /**
5 * Thrown to indicate that a search service failure occurred while performing
6 * a list documents request.
8 * @deprecated As of 1.6.6, replaced by {@link ListException}.
9 */
10 @Deprecated
11 public class ListDocumentsException extends SearchBaseException {
12 static final long serialVersionUID = -3978896724020409268L;
14 /**
15 * Constructs an exception when some error occurred in
16 * the search service when processing a list documents request.
18 * @param message the error detail associated with the failure
20 public ListDocumentsException(String message) {
21 this(new OperationResult(StatusCode.INTERNAL_ERROR, message));
24 /**
25 * Constructs an exception when some error occurred in
26 * the search service when processing a list documents request.
28 * @param operationResult the error code and message detail associated with
29 * the failure
31 public ListDocumentsException(OperationResult operationResult) {
32 super(operationResult);