Note
Access to this page requires authorization. You can try signing in or .
Access to this page requires authorization. You can try .
ClientResultException Class
Definition
- Namespace:
- System.ClientModel
- Assembly:
- System.ClientModel.dll
- Package:
- System.ClientModel v1.14.0
- Package:
- System.ClientModel v1.5.0-beta.1
- Source:
- ClientResultException.cs
- Source:
- ClientResultException.cs
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.
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
| Name | Description |
|---|---|
| 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 |
Properties
| Name | Description |
|---|---|
| Status |
Gets the HTTP status code of the response. Returns. |
Methods
| Name | Description |
|---|---|
| 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
Azure SDK for .NET
Feedback
Was this page helpful?
