1 // Copyright 2010 Google Inc. All rights reserved.
2 package com
.google
.appengine
.api
.search
;
5 * Thrown to indicate that a search service failure occurred.
8 public class SearchBaseException
extends RuntimeException
{
9 private static final long serialVersionUID
= 3608247775865189592L;
11 private final OperationResult operationResult
;
14 * Constructs an exception when some error occurred in
17 * @param operationResult the error code and message detail associated with
20 public SearchBaseException(OperationResult operationResult
) {
21 super(operationResult
.getMessage());
22 this.operationResult
= operationResult
;
26 * @return the error code and message detail associated with
29 public OperationResult
getOperationResult() {
30 return operationResult
;