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
messagestringA description containing no credentials or response body.
statusCodeHttpStatusCode?The HTTP status, or null for local validation failures.
errorCodestringThe cloud error identifier, or null when absent.
retryAfterTimeSpan?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.