public class DesktopException : Exception Represents a redacted, stable Desktop operation failure.
Constructors
DesktopException
public DesktopException(DesktopErrorCategory category, string code, string message, bool retryable = false, Exception? innerException = null, string? correlationId = null) Creates a Desktop failure with a stable category and code.
Parameters
categoryThe stable error category.
codeThe stable, machine-readable error code, such as
origin-not-allowed.messageThe safe, redacted message.
retryableWhether repeating the operation may succeed.
innerExceptionThe underlying failure, kept for diagnostics only.
correlationIdThe diagnostic correlation identity, or
nullto generate one.
Exceptions
ArgumentExceptioncodeis empty or whitespace.ArgumentNullExceptioncodeisnull.
Properties
Code
public string Code { get; } Gets the stable, machine-readable error code.
CorrelationId
public string CorrelationId { get; } Gets the opaque identity used to correlate redacted frontend and host diagnostics.
Retryable
public bool Retryable { get; } Gets whether repeating the operation may succeed.