Python 2.7 はサポートが終了しており、2026 年 1 月 31 日に
非推奨になります。非推奨になると、過去に組織のポリシーを使用して以前のランタイムのデプロイを再度有効にしていた場合でも、Python 2.7 アプリケーションをデプロイできなくなります。既存の Python 2.7 アプリケーションは、
非推奨日以降も引き続き実行され、トラフィックを受信します。
サポートされている最新バージョンの Python に移行することをおすすめします。
例外
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Search API では、次の例外が発生する場合があります。
- エラー
このモジュールの例外の基本クラスです。
- PutError
ドキュメントをインデックスに登録できません。
- InternalError
Search API の呼び出しでバックエンドの内部エラーが発生しました。
- DeleteError
オブジェクトを削除できません。
- TransientError
Search API の呼び出しに失敗しましたが、再試行すると成功する可能性があります。
- InvalidRequest
クライアントによって無効な Search API が呼び出されました。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 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."]]