Class ActivityAlreadyStartedException

All Implemented Interfaces:
Serializable

@Experimental public final class ActivityAlreadyStartedException extends ActivityException
Thrown by ActivityClient.start(java.lang.Class<I>, io.temporal.workflow.Functions.Proc1<I>, io.temporal.client.StartActivityOptions) when the server returns an ALREADY_EXISTS error because an activity with the same ID is already running (or has a completed run that conflicts with the requested StartActivityOptions.getIdReusePolicy() / StartActivityOptions.getIdConflictPolicy()).
See Also:
  • Constructor Details

    • ActivityAlreadyStartedException

      public ActivityAlreadyStartedException(String activityId, String activityType, @Nullable String runId, Throwable cause)
  • Method Details

    • getActivityType

      public String getActivityType()
      The activity type that was requested.