This repository is for active development of the Azure SDK for Java. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/java/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-java.
MIT License
2.25k
stars
1.93k
forks
source link
Only wrap exceptions in CosmosException - 400 for custom serializers #40929
Previous change started wrapping all Exceptions in all CosmosItemSerializers in a CosmosExceptions. This was intended for custom serializers - but not for the "default" path - we should not change exception types there.
All SDK Contribution checklist:
[X] The pull request does not introduce [breaking changes]
[X] CHANGELOG is updated for new features, bug fixes or other significant changes.
[X] Title of the pull request is clear and informative.
[X] There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.
Description
Previous change started wrapping all Exceptions in all CosmosItemSerializers in a CosmosExceptions. This was intended for custom serializers - but not for the "default" path - we should not change exception types there.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines