Java 8 has reached end of support
and will be
deprecated
on January 31, 2026. After deprecation, you won't be able to deploy Java 8
applications, even if your organization previously used an organization policy to
re-enable deployments of legacy runtimes. Your existing Java
8 applications will continue to run and receive traffic after their
deprecation date. We recommend that
you
migrate to the latest supported version of Java.
PutException (Google App Engine API for Java)
Stay organized with collections
Save and categorize content based on your preferences.
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
-
-
Constructor Summary
Constructors
Constructor and Description |
PutException(OperationResult operationResult)
Constructs an exception when some error occurred in
the search service when putting some objects into the index.
|
PutException(OperationResult operationResult,
java.util.List<OperationResult> results,
java.util.List<java.lang.String> ids)
Constructs an exception when some error occurred in
the search service when putting some objects to the index.
|
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
Method Detail
-
getResults
public java.util.List<OperationResult> getResults()
- Returns:
- the list of
OperationResult
where each result is
associated with a request to be put an object into the index
-
getIds
public java.util.List<java.lang.String> getIds()
- Returns:
- the list of Ids of objects that were requested to be put into
the index
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-06-16 UTC.
[[["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-06-16 UTC."],[[["\u003cp\u003e\u003ccode\u003ePutException\u003c/code\u003e is a class that extends \u003ccode\u003eSearchBaseException\u003c/code\u003e and is thrown when there is a failure in the search service while adding objects to the index.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003ePutException\u003c/code\u003e includes a constructor to create an exception instance with an \u003ccode\u003eOperationResult\u003c/code\u003e detailing the error and another constructor that also takes in \u003ccode\u003eOperationResults\u003c/code\u003e and object \u003ccode\u003eids\u003c/code\u003e lists to associate results to objects.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePutException\u003c/code\u003e provides methods \u003ccode\u003egetResults()\u003c/code\u003e to get a list of \u003ccode\u003eOperationResult\u003c/code\u003e objects associated with each object that failed to be put, and \u003ccode\u003egetIds()\u003c/code\u003e to get a list of the IDs of objects that failed to be put into the index.\u003c/p\u003e\n"]]],[],null,["# PutException (Google App Engine API for Java)\n\ncom.google.appengine.api.search\n\nClass PutException\n------------------\n\n- java.lang.Object\n-\n - java.lang.Throwable\n -\n - java.lang.Exception\n -\n - java.lang.RuntimeException\n -\n - [com.google.appengine.api.search.SearchBaseException](../../../../../com/google/appengine/api/search/SearchBaseException.html \"class in com.google.appengine.api.search\")\n -\n - com.google.appengine.api.search.PutException\n\n-\n\n All Implemented Interfaces:\n : java.io.Serializable\n\n *** ** * ** ***\n\n \u003cbr /\u003e\n\n ```\n public class PutException\n extends SearchBaseException\n ``` \n Thrown to indicate that a search service failure occurred while putting objects into the index.\n\n See Also:\n: [Serialized Form](../../../../../serialized-form.html#com.google.appengine.api.search.PutException) \n-\n -\n\n ### Constructor Summary\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Summary\n\n -\n\n ### Methods inherited from class com.google.appengine.api.search.[SearchBaseException](../../../../../com/google/appengine/api/search/SearchBaseException.html \"class in com.google.appengine.api.search\")\n\n [getOperationResult](../../../../../com/google/appengine/api/search/SearchBaseException.html#getOperationResult--)\n\n \u003c!-- --\u003e\n\n -\n\n ### Methods inherited from class java.lang.Throwable\n\n `addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString`\n\n \u003c!-- --\u003e\n\n -\n\n ### Methods inherited from class java.lang.Object\n\n`equals, getClass, hashCode, notify, notifyAll, wait, wait, wait` \n-\n -\n\n ### Constructor Detail\n\n\n -\n\n #### PutException\n\n ```\n public PutException(OperationResult operationResult)\n ``` \n Constructs an exception when some error occurred in the search service when putting some objects into the index.\n\n Parameters:\n : `operationResult` - the error code and message detail associated with\n the failure\n\n\n -\n\n #### PutException\n\n ```\n public PutException(OperationResult operationResult,\n java.util.List\u003cOperationResult\u003e results,\n java.util.List\u003cjava.lang.String\u003e ids)\n ``` \n Constructs an exception when some error occurred in the search service when putting some objects to the index.\n\n Parameters:\n : `operationResult` - the error code and message detail associated with\n the failure\n : `results` - the list of [`OperationResult`](../../../../../com/google/appengine/api/search/OperationResult.html \"class in com.google.appengine.api.search\") where each result is\n associated with an object that was requested to be put into the index\n : `ids` - the list of Ids of the object requested to be\n put into the index. The search service may provide an Id if none was given\n for an object\n\n \u003c!-- --\u003e\n\n -\n\n ### Method Detail\n\n\n -\n\n #### getResults\n\n ```\n public java.util.List\u003cOperationResult\u003e getResults()\n ```\n\n Returns:\n : the list of [`OperationResult`](../../../../../com/google/appengine/api/search/OperationResult.html \"class in com.google.appengine.api.search\") where each result is\n associated with a request to be put an object into the index\n\n\n -\n\n #### getIds\n\n ```\n public java.util.List\u003cjava.lang.String\u003e getIds()\n ```\n\n Returns:\n : the list of Ids of objects that were requested to be put into\n the index"]]