你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
StorageException.TranslateException 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
重载
TranslateException(Exception, RequestResult)
public static Microsoft.WindowsAzure.Storage.StorageException TranslateException (Exception ex, Microsoft.WindowsAzure.Storage.RequestResult reqResult);
static member TranslateException : Exception * Microsoft.WindowsAzure.Storage.RequestResult -> Microsoft.WindowsAzure.Storage.StorageException
Public Shared Function TranslateException (ex As Exception, reqResult As RequestResult) As StorageException
参数
- ex
- Exception
- reqResult
- RequestResult
返回
适用于
TranslateException(Exception, RequestResult, Func<Stream,StorageExtendedErrorInformation>)
public static Microsoft.WindowsAzure.Storage.StorageException TranslateException (Exception ex, Microsoft.WindowsAzure.Storage.RequestResult reqResult, Func<System.IO.Stream,Microsoft.WindowsAzure.Storage.StorageExtendedErrorInformation> parseError);
static member TranslateException : Exception * Microsoft.WindowsAzure.Storage.RequestResult * Func<System.IO.Stream, Microsoft.WindowsAzure.Storage.StorageExtendedErrorInformation> -> Microsoft.WindowsAzure.Storage.StorageException
Public Shared Function TranslateException (ex As Exception, reqResult As RequestResult, parseError As Func(Of Stream, StorageExtendedErrorInformation)) As StorageException
参数
- ex
- Exception
- reqResult
- RequestResult
- parseError
- Func<Stream,StorageExtendedErrorInformation>
返回
适用于
TranslateException(Exception, RequestResult, Func<Stream,StorageExtendedErrorInformation>, HttpResponseMessage)
public static Microsoft.WindowsAzure.Storage.StorageException TranslateException (Exception ex, Microsoft.WindowsAzure.Storage.RequestResult reqResult, Func<System.IO.Stream,Microsoft.WindowsAzure.Storage.StorageExtendedErrorInformation> parseError, System.Net.Http.HttpResponseMessage response);
static member TranslateException : Exception * Microsoft.WindowsAzure.Storage.RequestResult * Func<System.IO.Stream, Microsoft.WindowsAzure.Storage.StorageExtendedErrorInformation> * System.Net.Http.HttpResponseMessage -> Microsoft.WindowsAzure.Storage.StorageException
Public Shared Function TranslateException (ex As Exception, reqResult As RequestResult, parseError As Func(Of Stream, StorageExtendedErrorInformation), response As HttpResponseMessage) As StorageException
参数
- ex
- Exception
- reqResult
- RequestResult
- parseError
- Func<Stream,StorageExtendedErrorInformation>
- response
- HttpResponseMessage