Signature
timelineCommandFail(reason: TimelineCommandFailureReason, message?: string, cause?: Error): TimelineCommandResult<Value>Type parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
Value | None | void | Payload type expected by the matching successful command result. |
Parameters
| Name | Type | Description |
|---|---|---|
| reason | TimelineCommandFailureReason | Machine-readable failure reason. |
| message | string | Optional human-readable failure detail. |
| cause | Error | Optional original error that caused the failure. |
Returns
TimelineCommandResult<Value>
Failed command result.