다음을 통해 공유


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