Class ApiException
Thrown for a non-2xx HTTP response, a transport failure, or a
serialization/deserialization error.
Namespace: Pulumi.Cloud.Sdk
Assembly: Pulumi.Cloud.Sdk.dll
Syntax
public sealed class ApiException : Exception, ISerializable
Constructors
View Source
ApiException(int, string, string, JToken, string, Exception)
Declaration
public ApiException(int statusCode, string message, string url, JToken body, string rawBody, Exception inner)
Parameters
Properties
View Source
Body
Parsed JSON error body, or null if the body was absent or not JSON.
Declaration
public JToken Body { get; }
Property Value
View Source
RawBody
Raw response body text, or null.
Declaration
public string RawBody { get; }
Property Value
View Source
StatusCode
HTTP status code, or 0 for a transport/serialization failure.
Declaration
public int StatusCode { get; }
Property Value
View Source
Url
Declaration
public string Url { get; }
Property Value
Implements