Skip to content
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

Added additional info to exceptions for Blobs, Share Files, and DataLake #15986

Merged

Conversation

seanmcc-msft
Copy link
Member

Resolves #14469

@ghost ghost added the Storage Storage Service (Queues, Blobs, Files) label Oct 14, 2020
Copy link
Member

@tg-msft tg-msft left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome - thank you for fixing this.

message: Message,
content: null,
response.GetErrorCode(Code),
AdditionalInformation);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can DataLakeStorageError at the bottom of the file have additional XML elements like StorageError does? Should we copy the XML parsing code above here down into it too?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StorageError.CustomizeFromXml(...) is called by the generated code. I don't think adding this method to DataLakeStorageError will do anything, since the generated code won't call the method.

In addition, I looked into adding AdditionalInformation to DataLakeStorageError, but it appears this information is actually not provided by the DFS endpoint.

@seanmcc-msft seanmcc-msft merged commit 3224238 into Azure:master Oct 16, 2020
@seanmcc-msft seanmcc-msft deleted the feature/storage/improveExceptions branch October 16, 2020 18:05
annelo-msft pushed a commit to annelo-msft/azure-sdk-for-net that referenced this pull request Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Improve error messaging for invalid headers
4 participants