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.
Dinaikkan saat mencoba menetapkan nilai ke atau menghapus properti yang dihitung.
pengecualianInvalidPropertyError()
Diajukan saat properti tidak berlaku untuk penggunaan tertentu. Misalnya, properti harus ada dan diindeks untuk digunakan dalam proyeksi kueri atau mengelompokkan menurut klausa.
pengecualianReadonlyPropertyError()
Dinaikkan saat mencoba menetapkan nilai properti yang bersifat hanya baca.
pengecualianUnprojectedPropertyError()
Dinaikkan saat mendapatkan nilai properti yang tidak dalam proyeksi.
[[["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 page explains the usage of legacy bundled services and APIs, which are exclusive to first-generation runtimes in the App Engine standard environment.\u003c/p\u003e\n"],["\u003cp\u003eA migration guide is available for those updating to the App Engine Python 3 runtime, offering options for migrating legacy bundled services.\u003c/p\u003e\n"],["\u003cp\u003eThe NDB datastore offers several unique exception classes, including \u003ccode\u003eComputedPropertyError\u003c/code\u003e, \u003ccode\u003eInvalidPropertyError\u003c/code\u003e, \u003ccode\u003eReadonlyPropertyError\u003c/code\u003e, and \u003ccode\u003eUnprojectedPropertyError\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThese exceptions deal with scenarios like attempting to set or delete a computed property, improper usage of a property, setting a read-only property, or accessing an unprojected property.\u003c/p\u003e\n"]]],[],null,["# Exceptions\n\n| This page describes how to use the legacy bundled services and APIs. This API can only run in first-generation runtimes in the App Engine standard environment. 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\nIn addition to the [DB datastore exceptions](/appengine/docs/legacy/standard/python/datastore/exceptions), the NDB datastore provides the following exception classes:\n\nexception ComputedPropertyError()\n: Raised when attempting to set a value to or delete a computed property.\n\nexception InvalidPropertyError()\n: Raised when a property is not applicable to a given use. For example, a property must exist and be indexed to be used in a query's projection or group by clause.\n\nexception ReadonlyPropertyError()\n: Raised when attempting to set a property value that is read-only.\n\nexception UnprojectedPropertyError()\n: Raised when getting a property value that's not in the projection."]]