Skip to content

fix(smithy-client): exception option missing message property #3424

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

Merged
merged 3 commits into from
Sep 27, 2022

Conversation

eduardomourar
Copy link
Contributor

@eduardomourar eduardomourar commented Mar 15, 2022

Issue

resolves: #3492

The message property is being excluded in ExceptionOptionType.

Description

From the type-system perspective, we were not allowed to pass the message whenever instantiating any Exception generated by the Smithy TypeScript generator.

Testing

Unit test

Additional context


By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

@eduardomourar eduardomourar requested a review from a team as a code owner March 15, 2022 12:41
@eduardomourar
Copy link
Contributor Author

@AllanZhengYP , could you help with this PR, please? It is a small change that is blocking me.

AllanZhengYP
AllanZhengYP previously approved these changes Mar 28, 2022
@AllanZhengYP
Copy link
Contributor

@eduardomourar Thanks for the PR! It looks good to me.

The SSDK CI is failing, likely due to the updated TypeScript version. I cannot reproduce it with the latest main branches. Can you try rebasing it?

@eduardomourar
Copy link
Contributor Author

@AllanZhengYP, rebase done

@eduardomourar eduardomourar force-pushed the fix/exception-option-message branch from 4400638 to 607ffe7 Compare April 22, 2022 07:44
@eduardomourar eduardomourar force-pushed the fix/exception-option-message branch from 607ffe7 to 59f2868 Compare September 27, 2022 07:31
@eduardomourar
Copy link
Contributor Author

@AllanZhengYP , @trivikr or @kuhe , could this PR be merged, please?

@trivikr trivikr merged commit 6fc39be into aws:main Sep 27, 2022
@github-actions
Copy link

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 12, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to pass message to generated Smithy exception
3 participants