简体   繁体   English

什么是Azure Blob上传异常?

[英]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 . 我知道这是一个基本问题,但是我无法在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? 现在的问题很简单,当超过超时限制时,CloudBlobClient是否会触发标准TimeoutException或更特定于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. 当前,我仅使用TimeoutException,但是我想怀疑自己,我想确认该异常至少是从TimeoutException扩展的,但是很奇怪,在此问题上MSDN找不到任何东西。

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 . 因此,在运行简单的测试后,我发现,如果Timeout太低,则不会引发TimeoutException(以某种方式不令人惊讶),而是抛出Microsoft.WindowsAzure.StorageClient.StorageServerException With the ErrorCode set to StorageErrorCode.ServiceTimeout is thrown instead. ErrorCode设置为StorageErrorCode.ServiceTimeout被抛出。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM