Azure / azure-storage-net

Microsoft Azure Storage Libraries for .NET
Apache License 2.0
446 stars 373 forks source link

ErrorCode vs ExtendedErrorInformation.ErrorCode #1089

Open PrasantJillella opened 1 year ago

PrasantJillella commented 1 year ago

Which service(blob, file, queue, table) does this issue concern?

Table

Which version of the SDK was used?

SDK12

Which platform are you using? (ex: .NET Core 2.1)

Not required for this general scenario.

What problem was encountered?

I noticed that in few Exception cases we receive ErrorCode where as in few cases we receive ExtendedErrorInformation.ErrorCode. I wanted to check what is the difference b/w ErrorCode and ExtendedErrorInformation.ErrorCode and if they can be used interchangeably for what type of failure ErrorCode was returned by Azure Table Storage.

This impacts our testing scenarios and it would be useful for us to know if we can validate based on either of these values when the other is absent. Also is there any way we can know which value will be populated or which we need to check for ErrorCode ?

How can we reproduce the problem in the simplest way?

Have you found a mitigation/solution?

PrasantJillella commented 1 year ago

Hi Checking to see if anyone can help with this.