Show / Hide Table of Contents

Class ApiException

Thrown for a non-2xx HTTP response, a transport failure, or a serialization/deserialization error.

Inheritance
object
Exception
ApiException
Implements
ISerializable
Inherited Members
Exception.GetBaseException()
Exception.GetObjectData(SerializationInfo, StreamingContext)
Exception.GetType()
Exception.ToString()
Exception.Data
Exception.HelpLink
Exception.HResult
Exception.InnerException
Exception.Message
Exception.Source
Exception.StackTrace
Exception.TargetSite
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.ReferenceEquals(object, object)
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
Type Name Description
int statusCode
string message
string url
JToken body
string rawBody
Exception inner

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
Type Description
JToken
View Source

RawBody

Raw response body text, or null.

Declaration
public string RawBody { get; }
Property Value
Type Description
string
View Source

StatusCode

HTTP status code, or 0 for a transport/serialization failure.

Declaration
public int StatusCode { get; }
Property Value
Type Description
int
View Source

Url

Declaration
public string Url { get; }
Property Value
Type Description
string

Implements

ISerializable

Version 2026.10.9

  • View Source
Back to top Copyright 2016-2026, Pulumi Corporation.