I'm trying to implement sai-pullabhotla/catatumbo#172 to throw specialized exceptions in certain cases, more specifically, for NOT_FOUND and ALREADY_EXISTS errors.
As per this page -
NOT_FOUND = 5
ALREADY_EXISTS = 6
This works well and get the expected codes when working with the real/live GCD, but when using the Datastore Emulator, both test cases result in a code of INVALID_ARGUMENT = 3
FYI - Just did an update on gcloud/emulator and the issue remains. The gcloud versions are -
Google Cloud SDK 171.0.0
beta 2017.03.24
bq 2.0.25
cloud-datastore-emulator 1.2.1
core 2017.09.11
gcloud
gsutil 4.27
I'm trying to implement sai-pullabhotla/catatumbo#172 to throw specialized exceptions in certain cases, more specifically, for
NOT_FOUNDandALREADY_EXISTSerrors.As per this page -
This works well and get the expected codes when working with the real/live GCD, but when using the Datastore Emulator, both test cases result in a code of
INVALID_ARGUMENT = 3FYI - Just did an update on gcloud/emulator and the issue remains. The gcloud versions are -