Azure / azure-sdk-for-java

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

Wrapping exceptions thrown in custom serializers as a CosmosException with StatusCode 400 #40797

Closed FabianMeiswinkel closed 2 days ago

FabianMeiswinkel commented 4 days ago

Description

This PR ensures that any exceptions thrown from custom serializers are wrapped in a CosmosException with Status Code 400

All SDK Contribution checklist:

General Guidelines and Best Practices

Testing Guidelines

azure-sdk commented 4 days ago

API change check

API changes are not detected in this pull request.