Class EscApiException
Exception thrown when an ESC API operation fails.
Implements
Inherited Members
Namespace: Pulumi.Esc.Sdk
Assembly: Pulumi.Esc.Sdk.dll
Syntax
public class EscApiException : Exception, ISerializable
Constructors
View SourceEscApiException(string)
Initializes a new instance of EscApiException.
Declaration
public EscApiException(string message)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message |
EscApiException(string, HttpStatusCode, string)
Initializes a new instance of EscApiException with status code details.
Declaration
public EscApiException(string message, HttpStatusCode statusCode, string rawContent)
Parameters
| Type | Name | Description |
|---|---|---|
| string | message | |
| HttpStatusCode | statusCode | |
| string | rawContent |
Properties
View SourceRawContent
The raw response content, if available.
Declaration
public string? RawContent { get; }
Property Value
| Type | Description |
|---|---|
| string |
StatusCode
The HTTP status code of the failed response, if available.
Declaration
public HttpStatusCode? StatusCode { get; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode? |