Rejected

class Rejected<C : Any> @InternalWowApi constructor(val commandId: String, val commandType: String, val ref: AggregateRef, val error: ErrorInfo, val causation: Causation, val executionId: ExecutionId, val operator: Operator? = null, val scope: Scope = Scope.NONE, val headers: Map<String, String> = emptyMap(), val version: Int? = null) : CommandReceipt<C>

The command was refused with error. version is the version of ref the rejection answered: the version its events reached when it was committed with events, else the one the decision saw; null when the command was refused before any decision, a creation's. A rejection is a business outcome: the runtime hands it to the saga instead of parking the aggregate, whether the command was rejected in the saga's own context or in another, whose receipt comes back, and whether the saga derived it or called it (SagaContext.call) and let the rejection through.

Constructors

Link copied to clipboard
constructor(commandId: String, commandType: String, ref: AggregateRef, error: ErrorInfo, causation: Causation, executionId: ExecutionId, operator: Operator? = null, scope: Scope = Scope.NONE, headers: Map<String, String> = emptyMap(), version: Int? = null)

Properties

Link copied to clipboard
open override val causation: Causation
Link copied to clipboard
open override val commandId: String
Link copied to clipboard
open override val commandType: String
Link copied to clipboard
Link copied to clipboard
open override val executionId: ExecutionId
Link copied to clipboard
open override val headers: Map<String, String>
Link copied to clipboard
open override val operator: Operator?
Link copied to clipboard
open override val ref: AggregateRef
Link copied to clipboard
open override val scope: Scope
Link copied to clipboard
open override val version: Int?

Functions

Link copied to clipboard
fun copyWith(commandId: String = this.commandId, commandType: String = this.commandType, ref: AggregateRef = this.ref, error: ErrorInfo = this.error, causation: Causation = this.causation, executionId: ExecutionId = this.executionId, operator: Operator? = this.operator, scope: Scope = this.scope, headers: Map<String, String> = this.headers, version: Int? = this.version): CommandReceipt.Rejected<C>

This Rejected with the given fields replaced: Wow's own copy, left out of the ABI.

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun toString(): String