Skip to content

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

@AllanZhengYP AllanZhengYP marked this pull request as ready for review January 29, 2022 00:28
@AllanZhengYP AllanZhengYP requested a review from a team as a code owner January 29, 2022 00:28
@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.

2 participants