-
Notifications
You must be signed in to change notification settings - Fork 494
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added stack trace to CosmosException, ResponseMessage.ErrorMessage in…
…cludes full exception info. (#1213) * Removed Error since it is not being used anywhere. * Removed error since it's not being used * Refactored added new exception types * ResponseMessage.ErrorMessage will now return the full CosmosException string. Returning only the error message makes it not possible to debug. CosmosException now stores the stack trace. This fixes the issues where the error information is stored and later thrown causing the exception to show the incorrect error location. Created new CosmosExceptionFactory. This helps produce a CosmosException from the various types. * Fixed build issue * Renamed exception to add Cosmos to avoid confusion with Document name space versions. * Fixed exception handling and updated tests. * Fixed tests * Fixed ExceptionWithStackTraceException to use original exception stack trace. * Fixed merge conflicts with latest * Added diagnostic context to exceptions. * Fixed test for retail build * Updated error message field in linq tests * Converted the stack trace to a string. Removed creating the stack trace for exception less path. * Updated changelog * Removed typed exceptions to avoid exposing internal types. * Adding transport client exception tests. * Update Microsoft.Azure.Cosmos/src/Resource/CosmosExceptions/CosmosExceptionFactory.cs Co-Authored-By: Matias Quaranta <[email protected]> * Update Microsoft.Azure.Cosmos/src/Resource/CosmosExceptions/CosmosExceptionFactory.cs Co-Authored-By: Matias Quaranta <[email protected]> * Removed diagnostics from Response.ErrorMessage * Fixed unit test * Adding Error object to CosmosException for back compatability. * Adding unit test for Error handling Co-authored-by: Matias Quaranta <[email protected]>
- Loading branch information
Showing
39 changed files
with
1,086 additions
and
363 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.