Exceptions
Restez organisé à l'aide des collections
Enregistrez et classez les contenus selon vos préférences.
L'API Search peut générer les exceptions suivantes :
- Erreur
Classe de base pour les exceptions dans ce module
- PutError
Impossible d'indexer le document
- InternalError
Échec de l'appel de l'API Search sur le backend interne
- DeleteError
Impossible de supprimer l'objet
- TransientError
Échec de l'appel de l'API Search ; possibilité de réussite de la nouvelle tentative
- InvalidRequest
Appel non valide de l'API Search par le client
Sauf indication contraire, le contenu de cette page est régi par une licence Creative Commons Attribution 4.0, et les échantillons de code sont régis par une licence Apache 2.0. Pour en savoir plus, consultez les Règles du site Google Developers. Java est une marque déposée d'Oracle et/ou de ses sociétés affiliées.
Dernière mise à jour le 2025/09/04 (UTC).
[[["Facile à comprendre","easyToUnderstand","thumb-up"],["J'ai pu résoudre mon problème","solvedMyProblem","thumb-up"],["Autre","otherUp","thumb-up"]],[["Difficile à comprendre","hardToUnderstand","thumb-down"],["Informations ou exemple de code incorrects","incorrectInformationOrSampleCode","thumb-down"],["Il n'y a pas l'information/les exemples dont j'ai besoin","missingTheInformationSamplesINeed","thumb-down"],["Problème de traduction","translationIssue","thumb-down"],["Autre","otherDown","thumb-down"]],["Dernière mise à jour le 2025/09/04 (UTC)."],[[["\u003cp\u003eThis API is designed for first-generation runtimes and is relevant when upgrading to corresponding second-generation runtimes.\u003c/p\u003e\n"],["\u003cp\u003eA migration guide is available for those updating to the App Engine Python 3 runtime, providing migration options for legacy bundled services.\u003c/p\u003e\n"],["\u003cp\u003eThe Search API can raise several exceptions, including \u003ccode\u003eError\u003c/code\u003e, \u003ccode\u003ePutError\u003c/code\u003e, \u003ccode\u003eInternalError\u003c/code\u003e, \u003ccode\u003eDeleteError\u003c/code\u003e, \u003ccode\u003eTransientError\u003c/code\u003e, and \u003ccode\u003eInvalidRequest\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePutError\u003c/code\u003e is triggered if the document cannot be indexed, whereas \u003ccode\u003eDeleteError\u003c/code\u003e is triggered when the object can't be deleted.\u003c/p\u003e\n"]]],[],null,["# Exceptions\n\n| This API is supported for first-generation runtimes and can be used when [upgrading to corresponding second-generation runtimes](/appengine/docs/standard/\n| python3\n|\n| /services/access). If you are updating to the App Engine Python 3 runtime, refer to the [migration guide](/appengine/migration-center/standard/migrate-to-second-gen/python-differences) to learn about your migration options for legacy bundled services.\n\nThe Search API can raise the following exceptions:\n\nError\n\n: Base class for exceptions in this module.\n\nPutError\n\n: The document could not be indexed.\n\nInternalError\n\n: Search API call failed on internal backend.\n\nDeleteError\n\n: The object could not be deleted.\n\nTransientError\n\n: Search API call failed, but retrying may succeed.\n\nInvalidRequest\n\n: Invalid search API call by client."]]