PlatformResult<T>.Failed record

Namespace Runic.Platform · Runic.Platform 0.7.0-preview.5

public sealed record PlatformResult<T>.Failed : PlatformResult<T>, IEquatable<PlatformResult<T>.Failed>

Nested in PlatformResult. Inherits or implements PlatformResult, IEquatable.

The operation failed.

Parameters

Code

The classified failure. Branch on this value.

Diagnostic

Native error detail for logs and support, when the provider observed one.

Constructors

Failed

public Failed(PlatformFailureCode Code, PlatformDiagnostic? Diagnostic = null)

The operation failed.

Parameters

Code

The classified failure. Branch on this value.

Diagnostic

Native error detail for logs and support, when the provider observed one.

Properties

Code

public PlatformFailureCode Code { get; init; }

The classified failure. Branch on this value.

Diagnostic

public PlatformDiagnostic? Diagnostic { get; init; }

Native error detail for logs and support, when the provider observed one.