Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make DatastoreException message more informative #478

Closed
ajkannan opened this issue Dec 17, 2015 · 2 comments
Closed

Make DatastoreException message more informative #478

ajkannan opened this issue Dec 17, 2015 · 2 comments
Assignees
Labels
api: core api: datastore Issues related to the Datastore API. 🚨 This issue needs some love. triage me I really want to be triaged.

Comments

@ajkannan
Copy link

In DefaultDatastoreRpc.translate(DatastoreException exception), we lose helpful error messages because we only throw a DatastoreRpcException based on the associated Reason. For example, in a malformed query request, the user gets an exception with the message "Invalid request". The original exception thrown and translated by the method mentioned above may include a message such as "must specify all group by orderings before any non group by orderings", which is far more helpful for the user.

@ajkannan ajkannan added the api: datastore Issues related to the Datastore API. label Dec 17, 2015
@aozarov
Copy link
Contributor

aozarov commented Dec 17, 2015

👍 Could be handled by #438.

@aozarov
Copy link
Contributor

aozarov commented Jan 11, 2016

We could also set root cause to the original exception (should be useful even after #438).

mderka pushed a commit to mderka/gcloud-java that referenced this issue Jan 11, 2016
Makes DatastoreException message more informative by preserving a cause.
Fixes googleapis#478
mderka added a commit to mderka/gcloud-java that referenced this issue Jan 11, 2016
Makes DatastoreException message more informative by preserving a cause.
Fixes googleapis#478
mderka added a commit to mderka/gcloud-java that referenced this issue Jan 11, 2016
Makes DatastoreException message more informative by preserving a cause.
Fixes googleapis#478
mderka added a commit to mderka/gcloud-java that referenced this issue Jan 11, 2016
Makes DatastoreException message more informative by preserving a cause.
Fixes googleapis#478
ajkannan added a commit that referenced this issue Jan 12, 2016
Fixed #478 - Make DatastoreException informative.
@yoshi-automation yoshi-automation added 🚨 This issue needs some love. triage me I really want to be triaged. labels Apr 6, 2020
github-actions bot pushed a commit that referenced this issue Jun 30, 2022
Source-Link: googleapis/synthtool@7a220e2
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:6d4e3a15c62cfdcb823d60e16da7521e7c6fc00eba07c8ff12e4de9924a57d28
github-actions bot pushed a commit that referenced this issue Jul 20, 2022
…ers for Java code (#1494) (#478)

Source-Link: googleapis/synthtool@da89e53
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:04f254abfe5f47fe73ae6f91d68d55c3b76e722a4943066c3bb0ce03573b4ad9
github-actions bot pushed a commit that referenced this issue Sep 15, 2022
…cies to v3.0.2 (#478)

[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/compatibility-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/3.0.2/confidence-slim/3.0.1)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>googleapis/java-shared-dependencies</summary>

### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#&#8203;302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08)

[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2)

##### Dependencies

-   Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#&#8203;789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab))
-   Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#&#8203;781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554))
-   Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#&#8203;790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92))
-   Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#&#8203;773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0))
-   Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#&#8203;776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c))
-   Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#&#8203;780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4))
-   Update dependency io.grpc:grpc-bom to v1.48.1 ([#&#8203;768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e))
-   Update dependency io.grpc:grpc-bom to v1.49.0 ([#&#8203;786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344))
-   Update dependency org.checkerframework:checker-qual to v3.24.0 ([#&#8203;775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b))
-   Update dependency org.checkerframework:checker-qual to v3.25.0 ([#&#8203;788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9))
-   Update dependency org.threeten:threetenbp to v1.6.1 ([#&#8203;782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9))
-   Update gax.version to v2.19.0 ([#&#8203;785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa))
-   Update google.core.version to v2.8.10 ([#&#8203;787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558))
-   Update google.core.version to v2.8.7 ([#&#8203;774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e))
-   Update google.core.version to v2.8.8 ([#&#8203;777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200))
-   Update google.core.version to v2.8.9 ([#&#8203;784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-assured-workloads).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzMi4xOTQuMiIsInVwZGF0ZWRJblZlciI6IjMyLjE5NC4yIn0=-->
github-actions bot pushed a commit that referenced this issue Sep 19, 2022
🤖 I have created a release *beep* *boop*
---


## [2.2.0](googleapis/java-assured-workloads@v2.1.0...v2.2.0) (2022-09-15)


### Features

* Add compliant_but_disallowed_services field to the v1beta1 Workload proto ([#476](googleapis/java-assured-workloads#476)) ([cbcb55d](googleapis/java-assured-workloads@cbcb55d))
* Updated v1beta1 analyzeWorkloadMove documentation ([#473](googleapis/java-assured-workloads#473)) ([903257b](googleapis/java-assured-workloads@903257b))


### Dependencies

* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#478](googleapis/java-assured-workloads#478)) ([c646513](googleapis/java-assured-workloads@c646513))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.3 ([#480](googleapis/java-assured-workloads#480)) ([a48cd73](googleapis/java-assured-workloads@a48cd73))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Sep 30, 2022
🤖 I have created a release *beep* *boop*
---


## [0.13.3](googleapis/java-analytics-admin@v0.13.2...v0.13.3) (2022-09-29)


### Dependencies

* Update dependency cachetools to v5 ([#478](googleapis/java-analytics-admin#478)) ([1231930](googleapis/java-analytics-admin@1231930))
* Update dependency certifi to v2022.9.24 ([#460](googleapis/java-analytics-admin#460)) ([ec8852d](googleapis/java-analytics-admin@ec8852d))
* Update dependency charset-normalizer to v2.1.1 ([#464](googleapis/java-analytics-admin#464)) ([7aded8b](googleapis/java-analytics-admin@7aded8b))
* Update dependency click to v8.1.3 ([#465](googleapis/java-analytics-admin#465)) ([2ad11fb](googleapis/java-analytics-admin@2ad11fb))
* Update dependency gcp-releasetool to v1.8.8 ([#461](googleapis/java-analytics-admin#461)) ([52bcec4](googleapis/java-analytics-admin@52bcec4))
* Update dependency google-api-core to v2.10.1 ([#466](googleapis/java-analytics-admin#466)) ([f5f28e4](googleapis/java-analytics-admin@f5f28e4))
* Update dependency google-auth to v2.12.0 ([#467](googleapis/java-analytics-admin#467)) ([b96c8a3](googleapis/java-analytics-admin@b96c8a3))
* Update dependency google-cloud-core to v2.3.2 ([#462](googleapis/java-analytics-admin#462)) ([b444b65](googleapis/java-analytics-admin@b444b65))
* Update dependency google-cloud-storage to v2.5.0 ([#468](googleapis/java-analytics-admin#468)) ([620097f](googleapis/java-analytics-admin@620097f))
* Update dependency google-crc32c to v1.5.0 ([#469](googleapis/java-analytics-admin#469)) ([3f39cda](googleapis/java-analytics-admin@3f39cda))
* Update dependency googleapis-common-protos to v1.56.4 ([#463](googleapis/java-analytics-admin#463)) ([0fbc166](googleapis/java-analytics-admin@0fbc166))
* Update dependency importlib-metadata to v4.12.0 ([#470](googleapis/java-analytics-admin#470)) ([cc0108c](googleapis/java-analytics-admin@cc0108c))
* Update dependency jeepney to v0.8.0 ([#471](googleapis/java-analytics-admin#471)) ([1d09acc](googleapis/java-analytics-admin@1d09acc))
* Update dependency jinja2 to v3.1.2 ([#472](googleapis/java-analytics-admin#472)) ([9949a07](googleapis/java-analytics-admin@9949a07))
* Update dependency keyring to v23.9.3 ([#473](googleapis/java-analytics-admin#473)) ([443e7df](googleapis/java-analytics-admin@443e7df))
* Update dependency markupsafe to v2.1.1 ([#480](googleapis/java-analytics-admin#480)) ([ddebd04](googleapis/java-analytics-admin@ddebd04))
* Update dependency protobuf to v3.20.2 ([#481](googleapis/java-analytics-admin#481)) ([f0f032f](googleapis/java-analytics-admin@f0f032f))
* Update dependency protobuf to v4 ([#479](googleapis/java-analytics-admin#479)) ([754bb78](googleapis/java-analytics-admin@754bb78))
* Update dependency pyjwt to v2.5.0 ([#474](googleapis/java-analytics-admin#474)) ([6777481](googleapis/java-analytics-admin@6777481))
* Update dependency requests to v2.28.1 ([#475](googleapis/java-analytics-admin#475)) ([48dc786](googleapis/java-analytics-admin@48dc786))
* Update dependency typing-extensions to v4.3.0 ([#476](googleapis/java-analytics-admin#476)) ([8835380](googleapis/java-analytics-admin@8835380))
* Update dependency zipp to v3.8.1 ([#477](googleapis/java-analytics-admin#477)) ([3f004ad](googleapis/java-analytics-admin@3f004ad))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
github-actions bot pushed a commit that referenced this issue Oct 5, 2022
🤖 I have created a release *beep* *boop*
---


## [2.5.4](https://togithub.com/googleapis/java-security-private-ca/compare/v2.5.3...v2.5.4) (2022-10-03)


### Dependencies

* Update dependency certifi to v2022.9.24 ([#472](https://togithub.com/googleapis/java-security-private-ca/issues/472)) ([b7ac63c](https://togithub.com/googleapis/java-security-private-ca/commit/b7ac63c35497d3073146a3f917e9d71dfca6c7d5))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.4 ([#481](https://togithub.com/googleapis/java-security-private-ca/issues/481)) ([0864f46](https://togithub.com/googleapis/java-security-private-ca/commit/0864f46174c3888ec1f28cbe6f0951abd069e68b))
* Update dependency google-api-core to v2.10.1 ([#469](https://togithub.com/googleapis/java-security-private-ca/issues/469)) ([e3a4332](https://togithub.com/googleapis/java-security-private-ca/commit/e3a4332bb76f06b6850dcb4ca0d6639284ff6129))
* Update dependency google-crc32c to v1.5.0 ([#470](https://togithub.com/googleapis/java-security-private-ca/issues/470)) ([f500bd9](https://togithub.com/googleapis/java-security-private-ca/commit/f500bd94f2237362038879f8b104ff79388270e4))
* Update dependency googleapis-common-protos to v1.56.4 ([#468](https://togithub.com/googleapis/java-security-private-ca/issues/468)) ([7a5b57b](https://togithub.com/googleapis/java-security-private-ca/commit/7a5b57b4730ffd93776118c9560e3b4a0f0733c0))
* Update dependency importlib-metadata to v4.12.0 ([#474](https://togithub.com/googleapis/java-security-private-ca/issues/474)) ([eb84232](https://togithub.com/googleapis/java-security-private-ca/commit/eb84232607ea80eb82bf8fd2b6da63f8594ceb33))
* Update dependency jeepney to v0.8.0 ([#471](https://togithub.com/googleapis/java-security-private-ca/issues/471)) ([f6da44a](https://togithub.com/googleapis/java-security-private-ca/commit/f6da44a8bde26f69274d0ef2e6984267e5e1476b))
* Update dependency jinja2 to v3.1.2 ([#475](https://togithub.com/googleapis/java-security-private-ca/issues/475)) ([7b39657](https://togithub.com/googleapis/java-security-private-ca/commit/7b396570d9e67206d206680180fdc32772193bc3))
* Update dependency keyring to v23.9.3 ([#476](https://togithub.com/googleapis/java-security-private-ca/issues/476)) ([03463c4](https://togithub.com/googleapis/java-security-private-ca/commit/03463c4b913fe798af911046b2128c4f8ee48327))
* Update dependency markupsafe to v2.1.1 ([#477](https://togithub.com/googleapis/java-security-private-ca/issues/477)) ([be28076](https://togithub.com/googleapis/java-security-private-ca/commit/be280768d46917a9922ae37565fb9f603c910783))
* Update dependency protobuf to v3.20.2 ([#478](https://togithub.com/googleapis/java-security-private-ca/issues/478)) ([4a3c940](https://togithub.com/googleapis/java-security-private-ca/commit/4a3c9400301db2a0af4a0375872a17b6fcacbefb))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
suztomo pushed a commit that referenced this issue Feb 1, 2023
🤖 I have created a release *beep* *boop*
---


## [1.6.5](https://togithub.com/googleapis/java-iam/compare/v1.6.4...v1.6.5) (2022-10-24)


### Dependencies

* Update dependency com.google.apis:google-api-services-cloudresourcemanager to v3-rev20221016-2.0.0 ([#479](https://togithub.com/googleapis/java-iam/issues/479)) ([9f166f5](https://togithub.com/googleapis/java-iam/commit/9f166f52b9b35d5a1f7f6d108df4ad5a83d443b4))
* Update dependency com.google.auth:google-auth-library-oauth2-http to v1.12.1 ([#478](https://togithub.com/googleapis/java-iam/issues/478)) ([99688b0](https://togithub.com/googleapis/java-iam/commit/99688b038b014338a52119ba3f3217e9eed2228a))
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.5 ([#486](https://togithub.com/googleapis/java-iam/issues/486)) ([0834a80](https://togithub.com/googleapis/java-iam/commit/0834a80fa202b4185177a1339ed103e0829dd759))
* Update dependency com.google.cloud:google-iam-policy to v1.6.4 ([#475](https://togithub.com/googleapis/java-iam/issues/475)) ([2edd1e0](https://togithub.com/googleapis/java-iam/commit/2edd1e077feb172830b2475efef0632f01154e9e))
* Update dependency com.google.protobuf:protobuf-bom to v3.21.8 ([#481](https://togithub.com/googleapis/java-iam/issues/481)) ([d9bab83](https://togithub.com/googleapis/java-iam/commit/d9bab83b9ec53c88aea55f7cebd7017e6cd8ca77))
* Update dependency com.google.protobuf:protobuf-java to v3.21.8 ([#482](https://togithub.com/googleapis/java-iam/issues/482)) ([fd38f00](https://togithub.com/googleapis/java-iam/commit/fd38f001b7b695e08b1882581abc7f08b0ebd4b6))
* Update dependency io.grpc:grpc-protobuf to v1.50.0 ([#476](https://togithub.com/googleapis/java-iam/issues/476)) ([8108ea5](https://togithub.com/googleapis/java-iam/commit/8108ea56a7977869ff088a6832a629b226b8f934))
* Update dependency io.grpc:grpc-protobuf to v1.50.2 ([#483](https://togithub.com/googleapis/java-iam/issues/483)) ([6d9adae](https://togithub.com/googleapis/java-iam/commit/6d9adaea40595dac65e867a654fc0cea502af41c))
* Update dependency io.grpc:grpc-stub to v1.50.2 ([#477](https://togithub.com/googleapis/java-iam/issues/477)) ([424f559](https://togithub.com/googleapis/java-iam/commit/424f559193d1130fc04db0f4bc49337c4f9f8d00))

---
This PR was generated with [Release Please](https://togithub.com/googleapis/release-please). See [documentation](https://togithub.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: core api: datastore Issues related to the Datastore API. 🚨 This issue needs some love. triage me I really want to be triaged.
Projects
None yet
Development

No branches or pull requests

3 participants