MockDomainFailure interface

Namespace @runic-artifex/views/mock · @runic-artifex/views 0.7.0-preview.5

interface MockDomainFailure<TFailure = unknown>

A declared failure (domain-failed) the mock answers instead of running a handler. A command replies with it; a Start{Command} admits an operation that has already failed with it.

Properties

kind

readonly kind: "domain-failed";

No documentation.

failure

readonly failure: TFailure;

The failure; the wire value for the untyped mock, the typed value for a generated mock.

message

readonly message?: string;

No documentation.