rejectedReceipt
fun rejectedReceipt(command: Command<*>, executionId: ExecutionId, code: String, message: String = code, commandType: String = commandTypeOf(command)): CommandReceipt.Rejected<Any>
The rejection of command with code and message, as the runtime hands it to the @OnRejected handler of the saga whose execution executionId derived the command: for ProcessorSpec.whenRejected. It carries the command's scope, and no version, as a node's receipt does when it knows none; a test that hands one with the version its target rejected at builds it with CommandReceipt.Rejected(…, version = …).