Python 2.7 telah mencapai akhir dukungan
dan akan
dihentikan penggunaannya
pada 31 Januari 2026. Setelah penghentian penggunaan, Anda tidak akan dapat men-deploy aplikasi Python 2.7, meskipun organisasi Anda sebelumnya menggunakan kebijakan organisasi untuk mengaktifkan kembali deployment runtime lama. Aplikasi Python 2.7 yang ada akan terus berjalan dan menerima traffic setelah
tanggal penghentiannya. Sebaiknya Anda
bermigrasi ke versi Python terbaru yang didukung.
Pengecualian
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Search API dapat memunculkan pengecualian berikut:
- Error
Class dasar untuk pengecualian dalam modul ini.
- PutError
Dokumen tidak dapat diindeks.
- InternalError
Panggilan Search API gagal di backend internal.
- DeleteError
Objek tidak dapat dihapus.
- TransientError
Panggilan Search API gagal, tetapi percobaan ulang mungkin berhasil.
- InvalidRequest
Panggilan search API oleh klien tidak valid.
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-09-04 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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."]]