Version 1.7.4
[gae.git] / java / src / main / com / google / appengine / api / search / ListException.java
blobdfab39a8c504879074c3c22815f73177a5fc2fa9
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 request to list elements of an index.
8 */
9 public class ListException extends SearchBaseException {
11 /**
12 * Constructs an exception when some error occurred in
13 * the search service when processing a request to list elements of an index.
15 * @param message the error detail associated with the failure
17 public ListException(String message) {
18 this(new OperationResult(StatusCode.INTERNAL_ERROR, message));
21 /**
22 * Constructs an exception when some error occurred in
23 * the search service when processing a request to list elements of an index.
25 * @param operationResult the error code and message detail associated with
26 * the failure
28 public ListException(OperationResult operationResult) {
29 super(operationResult);