RunicFailureException<TFailure> class

Namespace Runic.Application.Views in Runic.Application.Views 0.23.0

public sealed class RunicFailureException<TFailure> : RunicFailureException where TFailure : notnull

Inherits or implements RunicFailureException.

Signals a declared failure of type TFailure from a command that has RunicFailureAttribute. The Bridge treats it as RunicFailureException; RunicFailureException.Failure returns the value with its declared type.

Type parameters

TFailure

The command's declared failure type, or a type derived from it.

Constructors

RunicFailureException

public RunicFailureException(TFailure failure)

Creates the exception for failure.

RunicFailureException

public RunicFailureException(TFailure failure, string? message)

Creates the exception for failure with a log message.

RunicFailureException

public RunicFailureException(TFailure failure, string? message, Exception? innerException)

Creates the exception for failure with a log message and the exception that caused it.

Properties

Failure

public TFailure Failure { get; }

The failure value, an instance of the command's declared failure type.