ClientResultException Constructors
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.
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 |
ClientResultException(String, PipelineResponse, Exception) |
Initializes a new instance of ClientResultException with a
custom exception message and an optional PipelineResponse.
The Message is set to |
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
- response
- PipelineResponse
The response, if any, to return from GetRawResponse().
- innerException
- Exception
The InnerException, if any, that threw the current exception.
Applies to
Azure SDK for .NET