stateMachine.getStateMachineAccessor()
.doWithRegion(function -> function.addStateMachineInterceptor(
new StateMachineInterceptorAdapter<CandidacyStates, CandidacyEvents>() {
@Override
public Exception stateMachineError(StateMachine<CandidacyStates, CandidacyEvents> stateMachine12,
Exception exception) {
// return null indicating handled error
return exception;
}
}));
我创建了拦截器来处理错误
但是当我们从未接受的事件中抛出异常时,我看不到调用进入StateStateMachineFunction的调用