rejectionContextOf
fun rejectionContextOf(handler: RejectionBinding<*>, rejected: CommandReceipt.Rejected<*>, ids: Ids = IdGenerators.DEFAULT): SagaContext
The context an @OnRejected handler gets for rejected: its execution is (handler, aggregate, version) of the commit whose saga execution derived the command, and the commands it derives are ExecutionReceiptContext's, deterministic per rejected command; it takes its ids from ids.
fun rejectionContextOf(handler: RejectionBinding<*>, rejected: CommandReceipt.Rejected<*>, ids: Ids, commandTypes: CommandTypes, queries: ContextQueries = ContextQueries.NONE, calls: CommandCalls = CommandCalls.NONE): SagaContext
The context an @OnRejected handler gets for rejected, as rejectionContextOf gives it, whose commands without a ref go to the aggregate type commandTypes assigns their class, and whose calls go through calls.