Idra
Idra

Reputation: 5807

What is the Azure Blob Upload Exception?

I know this is a basic question, but I can't seam to find a confirmation to this in MSDN CloudBlobClient.Timeout.

Now the question is simple, when the Timeout limit is exceeded does the CloudBlobClient fire a standard TimeoutException or something more specific to the CloudBlobClient?

Currently I am using simply TimeoutException, but I am staring to doubt myself, I would like to confirm that the exception is at least extended from the TimeoutException, but weirdly can't find anything in MSDN on the matter.

Upvotes: 2

Views: 603

Answers (1)

Idra
Idra

Reputation: 5807

So after running a simple test I found out, if the Timeout is too low, then the TimeoutException will not be thrown (somehow not suprising) but the Microsoft.WindowsAzure.StorageClient.StorageServerException. With the ErrorCode set to StorageErrorCode.ServiceTimeout is thrown instead.

Upvotes: 1

Related Questions