Freigeben über


ClientResultException Constructors

Definition

Overloads

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.

ClientResultException(PipelineResponse, Exception)

Source:
ClientResultException.cs
Source:
ClientResultException.cs

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.

public ClientResultException (System.ClientModel.Primitives.PipelineResponse response, Exception? innerException = default);
new System.ClientModel.ClientResultException : System.ClientModel.Primitives.PipelineResponse * Exception -> System.ClientModel.ClientResultException
Public Sub New (response As PipelineResponse, Optional innerException As Exception = Nothing)

Parameters

response
PipelineResponse

The service's error response.

innerException
Exception

The InnerException, if any, that threw the current exception.

Applies to

ClientResultException(String, PipelineResponse, Exception)

Source:
ClientResultException.cs
Source:
ClientResultException.cs

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.

public ClientResultException (string message, System.ClientModel.Primitives.PipelineResponse? response = default, Exception? innerException = default);
new System.ClientModel.ClientResultException : string * System.ClientModel.Primitives.PipelineResponse * Exception -> System.ClientModel.ClientResultException
Public Sub New (message As String, Optional response As PipelineResponse = Nothing, Optional innerException As Exception = Nothing)

Parameters

message
String

The message to set on Message.

response
PipelineResponse

The response, if any, to return from GetRawResponse().

innerException
Exception

The InnerException, if any, that threw the current exception.

Applies to