RunicFailureException class

Namespace Runic.Application.Views · Runic.Application 0.7.0-preview.5

public sealed class RunicFailureException : Exception

Inherits or implements Exception.

Signals a declared failure from a command that has RunicFailureAttribute. The Bridge sends RunicFailureException.Failure to the client as a domain-failed reply. A value that is not the declared type is reported as an unexpected failure.

Constructors

RunicFailureException

public RunicFailureException(object failure)

Creates the exception for failure.

RunicFailureException

public RunicFailureException(object failure, string? message)

Creates the exception for failure with a log message.

RunicFailureException

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

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

Properties

Failure

public object Failure { get; }

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