Class ApiException
API Exception
Implements
Inherited Members
Namespace: Pulumi.Esc.Sdk.Client
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class ApiException : Exception, ISerializable
Constructors
View SourceApiException(string?, HttpStatusCode, string)
Construct the ApiException from parts of the response
Declaration
public ApiException(string? reasonPhrase, HttpStatusCode statusCode, string rawContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | reasonPhrase | |
| HttpStatusCode | statusCode | |
| string | rawContent |
Properties
View SourceRawContent
The raw data returned by the api
Declaration
public string RawContent { get; }
Property Value
| Type | Description |
|---|---|
| string |
ReasonPhrase
The reason the api request failed
Declaration
public string? ReasonPhrase { get; }
Property Value
| Type | Description |
|---|---|
| string |
StatusCode
The HttpStatusCode
Declaration
public HttpStatusCode StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |