Is there a list of equivalent classes in 0.2.6 and 0.2.3

Hi i am looking to updrade my java client from 0.2.3 to 0.2.6
and i am stuck with few stuff want to know whats the equivalent of

ActivityFailureException, ChildWorkflowFailureException,DuplicateWorkflowException

1 Like

ActivityFailureException -> ActivityFailure
ChildWorkflowFailureException -> ChildWorkflowFailure
DuplicateWorkflowException -> WorkflowExecutionAlreadyStarted

Another significant change is that any unhandled exception which doesn’t extend TemporalFailure thrown from an activity or child workflow is converted into an ApplicationFailure. If you want to include application-specific data into an exception throw ApplicationFailure directly as it accepts a detail parameter to its constructor.

The main difference between 0.2.3 and 0.2.6 is that the failures are now represented in the service API which eliminates the need for exception serialization and allows chaining them across SDKs in different languages.