你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ClientResultException Class

Definition

The exception that is thrown when the processing of a client request failed.

public class ClientResultException : Exception
type ClientResultException = class
    inherit Exception
Public Class ClientResultException
Inherits Exception
Inheritance
ClientResultException

Constructors

ClientResultException(PipelineResponse, Exception)

Initializes a new instance of ClientResultException from a PipelineResponse containing the details of the service's error response. The Message is created from the provided response.

ClientResultException(String, PipelineResponse, Exception)

Initializes a new instance of ClientResultException with a custom exception message and an optional PipelineResponse. The Message is set to response and if response is provided, it will be returned from calls to this exception instance's GetRawResponse() method.

Properties

Status

Gets the HTTP status code of the response. Returns. 0 if response was not received.

Methods

CreateAsync(PipelineResponse, Exception)

Asynchronously create an instance of ClientResultException from the PipelineResponse containing the details of the service's error response.

GetRawResponse()

Gets the PipelineResponse, if any, that led to the exception.

Applies to