failSaga

@Transactional
open fun failSaga(sagaId: String, error: String): S(source)

Transitions the saga to SagaStatus.COMPENSATING with the supplied error as the reason and schedules compensation after the current transaction commits. No-op on terminal sagas.

Throws

if no saga with sagaId exists.