[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003e\u003ccode\u003ePutException\u003c/code\u003e is thrown when the search service encounters a failure while attempting to put objects into the index.\u003c/p\u003e\n"],["\u003cp\u003eThis exception extends \u003ccode\u003eSearchBaseException\u003c/code\u003e and provides methods to access details about the failed operation, using inherited members like \u003ccode\u003egetOperationResult()\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eConstructors for \u003ccode\u003ePutException\u003c/code\u003e accept an \u003ccode\u003eOperationResult\u003c/code\u003e to specify the error, and one additionally accepts \u003ccode\u003eList<OperationResult>\u003c/code\u003e and \u003ccode\u003eList<String>\u003c/code\u003e to specify the failure details for each object as well as their respective ids.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetIds()\u003c/code\u003e method allows you to retrieve a list of the IDs of objects that were requested to be added to the index.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003egetResults()\u003c/code\u003e method returns a list of \u003ccode\u003eOperationResult\u003c/code\u003e, providing information about the results of the attempt to put an object in the index, where each result is associated with a request.\u003c/p\u003e\n"]]],[],null,["# Exception PutException (2.0.0)\n\n public class PutException extends SearchBaseException\n\nThrown to indicate that a search service failure occurred while putting\nobjects into the index. \n\nInherited Members\n-----------------\n\n[SearchBaseException.getOperationResult()](/appengine/docs/standard/java-gen2/reference/services/bundled/latest/com.google.appengine.api.search.SearchBaseException#com_google_appengine_api_search_SearchBaseException_getOperationResult__) \n[Object.clone()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#clone--) \n[Object.equals(Object)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#equals-java.lang.Object-) \n[Object.finalize()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#finalize--) \n[Object.getClass()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#getClass--) \n[Object.hashCode()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#hashCode--) \n[Object.notify()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notify--) \n[Object.notifyAll()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#notifyAll--) \n[Object.wait()](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait--) \n[Object.wait(long)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-) \n[Object.wait(long,int)](https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html#wait-long-int-) \n[Throwable.addSuppressed(Throwable)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#addSuppressed-java.lang.Throwable-) \n[Throwable.fillInStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#fillInStackTrace--) \n[Throwable.getCause()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getCause--) \n[Throwable.getLocalizedMessage()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getLocalizedMessage--) \n[Throwable.getMessage()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getMessage--) \n[Throwable.getStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getStackTrace--) \n[Throwable.getSuppressed()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#getSuppressed--) \n[Throwable.initCause(Throwable)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#initCause-java.lang.Throwable-) \n[Throwable.printStackTrace()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace--) \n[Throwable.printStackTrace(PrintStream)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintStream-) \n[Throwable.printStackTrace(PrintWriter)](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#printStackTrace-java.io.PrintWriter-) \n[Throwable.setStackTrace(StackTraceElement\\[\\])](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#setStackTrace-java.lang.StackTraceElement[]-) \n[Throwable.toString()](https://docs.oracle.com/javase/8/docs/api/java/lang/Throwable.html#toString--)\n\nConstructors\n------------\n\n### PutException(OperationResult operationResult)\n\n public PutException(OperationResult operationResult)\n\nConstructs an exception when some error occurred in\nthe search service when putting some objects into the index.\n\n### PutException(OperationResult operationResult, List\\\u003cOperationResult\\\u003e results, List\\\u003cString\\\u003e ids)\n\n public PutException(OperationResult operationResult, List\u003cOperationResult\u003e results, List\u003cString\u003e ids)\n\nConstructs an exception when some error occurred in\nthe search service when putting some objects to the index.\n\nMethods\n-------\n\n### getIds()\n\n public List\u003cString\u003e getIds()\n\n### getResults()\n\n public List\u003cOperationResult\u003e getResults()"]]