Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / SearchException.java
blobcc3ad88e8aa04641a1e7ae2fced7e13eeaad6b80
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 search request.
8 */
9 public class SearchException extends SearchBaseException {
10 private static final long serialVersionUID = 3608247775865189592L;
12 /**
13 * Constructs an exception when some error occurred in
14 * the search service when processing a search request.
16 * @param message the error detail associated with the failure
18 public SearchException(String message) {
19 this(new OperationResult(StatusCode.INTERNAL_ERROR, message));
22 /**
23 * Constructs an exception when some error occurred in
24 * the search service when processing a search request.
26 * @param operationResult the error code and message detail associated with
27 * the failure
29 public SearchException(OperationResult operationResult) {
30 super(operationResult);