ClientResultException.CreateAsync(PipelineResponse, Exception) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asynchronously create an instance of ClientResultException from the PipelineResponse containing the details of the service's error response.
public static System.Threading.Tasks.Task<System.ClientModel.ClientResultException> CreateAsync (System.ClientModel.Primitives.PipelineResponse response, Exception? innerException = default);
static member CreateAsync : System.ClientModel.Primitives.PipelineResponse * Exception -> System.Threading.Tasks.Task<System.ClientModel.ClientResultException>
Public Shared Function CreateAsync (response As PipelineResponse, Optional innerException As Exception = Nothing) As Task(Of ClientResultException)
Parameters
- response
- PipelineResponse
The service's error response.
- innerException
- Exception
The InnerException, if any, that threw the current exception.
Returns
The ClientResultException instance that was created.
Applies to
GitHub で Microsoft と共同作業する
このコンテンツのソースは GitHub にあります。そこで、issue や pull request を作成および確認することもできます。 詳細については、共同作成者ガイドを参照してください。
Azure SDK for .NET