Table of Contents

Class ComfortCloudException

Namespace
PanasonicComfortCloudClient
Assembly
PanasonicComfortCloudClient.dll

Reports an HTTP, authentication or cloud-protocol failure without retaining sensitive bodies.

public sealed class ComfortCloudException : Exception, ISerializable
Inheritance
ComfortCloudException
Implements
Inherited Members

Remarks

Creates a cloud error with optional transport and protocol details.

Constructors

ComfortCloudException(string, HttpStatusCode?, string?, TimeSpan?)

Reports an HTTP, authentication or cloud-protocol failure without retaining sensitive bodies.

public ComfortCloudException(string message, HttpStatusCode? statusCode = null, string? errorCode = null, TimeSpan? retryAfter = null)

Parameters

message string

A description containing no credentials or response body.

statusCode HttpStatusCode?

The HTTP status, or null for local validation failures.

errorCode string

The cloud error identifier, or null when absent.

retryAfter TimeSpan?

The server-requested retry delay; writes are not retried automatically.

Remarks

Creates a cloud error with optional transport and protocol details.

Properties

ErrorCode

Gets the cloud error identifier.

public string? ErrorCode { get; }

Property Value

string

The protocol code, or null when absent.

RetryAfter

Gets the server-requested retry interval.

public TimeSpan? RetryAfter { get; }

Property Value

TimeSpan?

The Retry-After delay, or null when not supplied.

StatusCode

Gets the HTTP status.

public HttpStatusCode? StatusCode { get; }

Property Value

HttpStatusCode?

The response status, or null when no HTTP response exists.