com.google.appengine.api.search
Class SearchBaseException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by com.google.appengine.api.search.SearchBaseException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AddDocumentsException, ListDocumentsException, ListIndexesException, RemoveDocumentsException, SearchException, SearchQueryException

public class SearchBaseException
extends java.lang.RuntimeException

Thrown to indicate that a search service failure occurred.

See Also:
Serialized Form

Constructor Summary
SearchBaseException(OperationResult operationResult)
          Constructs an exception when some error occurred in the search service.
 
Method Summary
 OperationResult getOperationResult()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SearchBaseException

public SearchBaseException(OperationResult operationResult)
Constructs an exception when some error occurred in the search service.

Parameters:
operationResult - the error code and message detail associated with the failure
Method Detail

getOperationResult

public OperationResult getOperationResult()
Returns:
the error code and message detail associated with the failure