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

feat(smithy-client): implement SdkException class #3261

Merged
merged 5 commits into from
Jan 29, 2022

Conversation

AllanZhengYP
Copy link
Contributor

@AllanZhengYP AllanZhengYP commented Jan 28, 2022

Issue

#1506
#2007

Description

  • Create a new ServiceException class as a base class for all the server-side exception classes. The refactor to the deserializer will come next. It implements the mostly the same interface as SdkError.
  • SdkError interface is deprecated because it is not used/enforced in actual exceptions thrown from the deserializer. It cannot be changed to ServiceException class because it declares every member as optional. However, the SdkException contains required members(message, name), simply keeping the name will cause breaking change to anyone consuming the SdkError interface.
  • SmithyExceptoin interface is deprecated for the same reason.

Testing

TBD


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

@AllanZhengYP
Copy link
Contributor Author

After discussing offline, we are going to rename the base class name from SdkExceptoin to ServiceException

@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 Feb 13, 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.

None yet

2 participants