To improve the ease of use for Durable Functions for Java, we should change OrchestratorBlockedEvent and TaskFailedException to both derive from the unchecked RuntimeException. The main drivers for this are:
Users don't have to declare that every orchestrator functions throws OrchestratorBlockedEvent, TaskFailedException when using the new middleware.
Users can more easily use context APIs from within lambdas.
We should also rename OrchestratorBlockedEvent to OrchestratorBlockedException now that it derives from Exception.
To improve the ease of use for Durable Functions for Java, we should change
OrchestratorBlockedEvent
andTaskFailedException
to both derive from the uncheckedRuntimeException
. The main drivers for this are:throws OrchestratorBlockedEvent, TaskFailedException
when using the new middleware.We should also rename
OrchestratorBlockedEvent
toOrchestratorBlockedException
now that it derives fromException
.