indeedeng/iwf-java-sdk

Provide Sub exceptions of ClientSideException to be more friendly to catch

longquanzheng opened this issue · 0 comments

WORKFLOW_ALREADY_STARTED_SUB_STATUS ==> WorkflowAlreadyStartedException

WORKFLOW_NOT_EXISTS_SUB_STATUS ==> NoRunningWorkflowException (for write operation like signal/RPC) .

This is a bad name that we inherit from Cadence/Temporal. The temporal SDK use not_found for not able to signal(even the workflow does exist, but it’s just not open to signal)

LONG_POLL_TIME_OUT_SUB_STATUS ==> LongPollTimeoutException

This should be backward compatible change