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

fix(Java): Improve Collection of Errors string #1056

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

texastony
Copy link
Contributor

@texastony texastony commented Nov 26, 2024

Issue #, if available:

Description of changes:

Collection of Errors is a frustrating error because it requires customer action
to completely serialize it into logs.

We can make a simple fix in Java to improve the CX,
by always serializing the list into the Collection Of Error's
message.

We concatenate the given error message with
a serialization of all the nested errors.

Squash/merge commit message, if applicable:

fix(Java): Improve Collection of Errors string

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@texastony texastony requested a review from a team as a code owner November 26, 2024 00:20
@texastony texastony force-pushed the tony/fix-java-collection-of-error-message branch from e62d595 to 56b1c53 Compare November 26, 2024 00:47
Update was created by:
for FILE in $(find */runtimes/java/** -name "CollectionOfErrors.java"); do emacs $FILE; done
for FILE in $(find */runtimes/java/** -name "CollectionOfErrors.java"); do git add $FILE; done
cd TestVectorsAwsCryptographicMaterialProviders
gmake polymorph_java DAFNY_VERSION=4.9.0 POLYMORPH_OPTIONS=--update-patch-files |& tee poly.log |& less -r +F
@texastony texastony force-pushed the tony/fix-java-collection-of-error-message branch from 56b1c53 to 1053457 Compare November 26, 2024 01:02
Copy link
Member

@rishav-karanjit rishav-karanjit left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@texastony texastony merged commit 9e195a1 into main Nov 26, 2024
135 checks passed
@texastony texastony deleted the tony/fix-java-collection-of-error-message branch November 26, 2024 02:03
RitvikKapila pushed a commit that referenced this pull request Jan 31, 2025
# [1.9.0](v1.8.0...v1.9.0) (2025-01-31)

### Bug Fixes

* CI ([d9e2a1e](d9e2a1e))
* DafnyLibraries.FileIO extern ([b150c48](b150c48))
* ECDH ValidatePublicKey err msg ([34a48fc](34a48fc))
* for test vectors, use SetToSequenceSorted ([#1034](#1034)) ([21ad206](21ad206))
* **GHW:** check-files apply to PR, not to diff b/w HEAD and branch ([#1075](#1075)) ([1f53a92](1f53a92))
* improve golang externs ([#1133](#1133)) ([b6ee16e](b6ee16e))
* **Java:** Improve Collection of Errors string ([#1056](#1056)) ([9e195a1](9e195a1))
* line breaks ([21536c7](21536c7))
* PR comments ([798214b](798214b))
* PR comments ([a21c0b3](a21c0b3))
* PR comments ([7dd95bc](7dd95bc))
* PR comments ([eed0d87](eed0d87))
* PR comments ([435515e](435515e))
* re-enable aes_gcm_192 ([#1143](#1143)) ([23650a9](23650a9))
* region ([5930ae4](5930ae4))
* region ([e3454b5](e3454b5))
* remove [@sensitive](https://github.com/sensitive) from smithy models ([#1123](#1123)) ([c939f3a](c939f3a))
* repo rename ([#1218](#1218)) ([c2f003c](c2f003c))
* revert pyproject.toml drop ([b5dbb5c](b5dbb5c))
* rust code used for testing must be allowed dead code ([#1148](#1148)) ([5997919](5997919))
* SetToSequence should be a method, not a function ([#1035](#1035)) ([1169bc8](1169bc8))
* smithy-dafny ([#1136](#1136)) ([6005777](6005777))

### Features

* Adds CI ([511ed35](511ed35))
* check in polymorph go generated code  ([#1137](#1137)) ([d0fefbf](d0fefbf))
* Check-in polymorph generated code ([bfc7cb9](bfc7cb9))
* ddb Go externs ([1e3737b](1e3737b))
* **ddb:** Go release v0.0.1 ([#1201](#1201)) ([5293bfd](5293bfd))
* **ddb:** Go release v0.0.3 ([#1210](#1210)) ([983f553](983f553))
* **Go:** Go module rename ([#1196](#1196)) ([b0876ac](b0876ac))
* kms externs for Go ([2d1f6d1](2d1f6d1))
* **kms:** Go release v0.0.1 ([#1199](#1199)) ([9c80544](9c80544))
* mpl externs ([#1105](#1105)) ([29bc52e](29bc52e))
* **mpl:** Go release v0.0.1 ([#1211](#1211)) ([4508ab8](4508ab8))
* Primitives CI ([ce6e942](ce6e942))
* Primitives for Go ([8066826](8066826))
* **primitives:** Go release v0.0.1 ([#1203](#1203)) ([6bf0bbe](6bf0bbe))
* StandardLibrary for Go ([587b57e](587b57e))
* StandardLibrary for Go ([94b4fd0](94b4fd0))
* StandardLibrary for Go ([6ce1ce3](6ce1ce3))
* **StdLib:** Go v0.0.1 release ([#1195](#1195)) ([95e54bf](95e54bf))
RitvikKapila pushed a commit that referenced this pull request Feb 3, 2025
# [1.9.0](v1.8.0...v1.9.0) (2025-02-03)

### Bug Fixes

* CI ([d9e2a1e](d9e2a1e))
* DafnyLibraries.FileIO extern ([b150c48](b150c48))
* ECDH ValidatePublicKey err msg ([34a48fc](34a48fc))
* for test vectors, use SetToSequenceSorted ([#1034](#1034)) ([21ad206](21ad206))
* **GHW:** check-files apply to PR, not to diff b/w HEAD and branch ([#1075](#1075)) ([1f53a92](1f53a92))
* improve golang externs ([#1133](#1133)) ([b6ee16e](b6ee16e))
* **Java:** Improve Collection of Errors string ([#1056](#1056)) ([9e195a1](9e195a1))
* line breaks ([21536c7](21536c7))
* PR comments ([798214b](798214b))
* PR comments ([a21c0b3](a21c0b3))
* PR comments ([7dd95bc](7dd95bc))
* PR comments ([eed0d87](eed0d87))
* PR comments ([435515e](435515e))
* re-enable aes_gcm_192 ([#1143](#1143)) ([23650a9](23650a9))
* region ([5930ae4](5930ae4))
* region ([e3454b5](e3454b5))
* remove [@sensitive](https://github.com/sensitive) from smithy models ([#1123](#1123)) ([c939f3a](c939f3a))
* repo rename ([#1218](#1218)) ([c2f003c](c2f003c))
* revert pyproject.toml drop ([b5dbb5c](b5dbb5c))
* rust code used for testing must be allowed dead code ([#1148](#1148)) ([5997919](5997919))
* SetToSequence should be a method, not a function ([#1035](#1035)) ([1169bc8](1169bc8))
* smithy-dafny ([#1136](#1136)) ([6005777](6005777))

### Features

* Adds CI ([511ed35](511ed35))
* check in polymorph go generated code  ([#1137](#1137)) ([d0fefbf](d0fefbf))
* Check-in polymorph generated code ([bfc7cb9](bfc7cb9))
* ddb Go externs ([1e3737b](1e3737b))
* **ddb:** Go release v0.0.1 ([#1201](#1201)) ([5293bfd](5293bfd))
* **ddb:** Go release v0.0.3 ([#1210](#1210)) ([983f553](983f553))
* **Go:** Go module rename ([#1196](#1196)) ([b0876ac](b0876ac))
* kms externs for Go ([2d1f6d1](2d1f6d1))
* **kms:** Go release v0.0.1 ([#1199](#1199)) ([9c80544](9c80544))
* mpl externs ([#1105](#1105)) ([29bc52e](29bc52e))
* **mpl:** Go release v0.0.1 ([#1211](#1211)) ([4508ab8](4508ab8))
* Primitives CI ([ce6e942](ce6e942))
* Primitives for Go ([8066826](8066826))
* **primitives:** Go release v0.0.1 ([#1203](#1203)) ([6bf0bbe](6bf0bbe))
* StandardLibrary for Go ([587b57e](587b57e))
* StandardLibrary for Go ([94b4fd0](94b4fd0))
* StandardLibrary for Go ([6ce1ce3](6ce1ce3))
* **StdLib:** Go v0.0.1 release ([#1195](#1195)) ([95e54bf](95e54bf))
This was referenced Feb 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants