Revision created by MOE tool push_codebase.
[gae.git] / java / src / main / com / google / appengine / api / search / SearchBaseException.java
blob3975abacaf37ed09dccd3baf02ac439cacaf7701
1 // Copyright 2010 Google Inc. All rights reserved.
2 package com.google.appengine.api.search;
4 /**
5 * Thrown to indicate that a search service failure occurred.
7 */
8 public class SearchBaseException extends RuntimeException {
9 private static final long serialVersionUID = 3608247775865189592L;
11 private final OperationResult operationResult;
13 /**
14 * Constructs an exception when some error occurred in
15 * the search service.
17 * @param operationResult the error code and message detail associated with
18 * the failure
20 public SearchBaseException(OperationResult operationResult) {
21 super(operationResult.getMessage());
22 this.operationResult = operationResult;
25 /**
26 * @return the error code and message detail associated with
27 * the failure
29 public OperationResult getOperationResult() {
30 return operationResult;