-
Notifications
You must be signed in to change notification settings - Fork 5
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 by Bors] - feat: adding serialized check (CV3-289) #461
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
approved with some comments
a503794
to
18c4366
Compare
bors r+ |
<!-- You can erase any parts of this template not applicable to your Pull Request. --> **Fixes or implements CV3-289** ### Brief description. What is this change? <!-- Build up some context for your teammates on the changes made here and potential tradeoffs made and/or highlight any topics for discussion --> Adding a new static method to `HTTPException` to check if a plain object is an instance of a serialized `HTTPException`. The reason this method should be added as part of the `HTTPException` API is because the `HTTPException` is often serialized and transmitted over the wire to a different service. The client service which receives the serialized `HTTPException` needs a method to detect that the error payload is of shape `SerializedHTTPException` and not something else like a basic JavaScript `Error`. This is a very common use-case. Without this method, every client has to implement the duck-typing check for `SerializedHTTPException` to proper handle this exception. This creates duplication.
Timed out. |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
bors r+ |
<!-- You can erase any parts of this template not applicable to your Pull Request. --> **Fixes or implements CV3-289** ### Brief description. What is this change? <!-- Build up some context for your teammates on the changes made here and potential tradeoffs made and/or highlight any topics for discussion --> Adding a new static method to `HTTPException` to check if a plain object is an instance of a serialized `HTTPException`. The reason this method should be added as part of the `HTTPException` API is because the `HTTPException` is often serialized and transmitted over the wire to a different service. The client service which receives the serialized `HTTPException` needs a method to detect that the error payload is of shape `SerializedHTTPException` and not something else like a basic JavaScript `Error`. This is a very common use-case. Without this method, every client has to implement the duck-typing check for `SerializedHTTPException` to proper handle this exception. This creates duplication.
Pull request successfully merged into master. Build succeeded: |
Fixes or implements CV3-289
Brief description. What is this change?
Adding a new static method to
HTTPException
to check if a plain object is an instance of a serializedHTTPException
.The reason this method should be added as part of the
HTTPException
API is because theHTTPException
is often serialized and transmitted over the wire to a different service. The client service which receives the serializedHTTPException
needs a method to detect that the error payload is of shapeSerializedHTTPException
and not something else like a basic JavaScriptError
. This is a very common use-case.Without this method, every client has to implement the duck-typing check for
SerializedHTTPException
to proper handle this exception. This creates duplication.Implementation details. How do you make this change?
Setup information
Deployment Notes
Related PRs
Checklist