public sealed class RunicFailureException<TFailure> : RunicFailureException where TFailure : notnull 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
TFailureThe 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.