Class CreateTasksErrorException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.compute.batch.models.CreateTasksErrorException
All Implemented Interfaces:
Serializable

public class CreateTasksErrorException extends com.azure.core.exception.AzureException
The exception that is thrown when the BatchClient.createTasks(String, List, BatchClientParallelOptions) operation is terminated.
See Also:
  • Constructor Details

    • CreateTasksErrorException

      public CreateTasksErrorException(String message, List<BatchTaskAddResult> failureTaskList, List<BatchTaskCreateContent> pendingTaskList)
      Initializes a new instance of the CreateTasksErrorException class.
      Parameters:
      message - The exception message.
      failureTaskList - The list of BatchTaskAddResult instances containing failure details for tasks that were not successfully created.
      pendingTaskList - The list of BatchTask instances containing the tasks that were not added, but for which the operation can be retried.
  • Method Details

    • failureTaskList

      public List<BatchTaskAddResult> failureTaskList()
      Gets the list of BatchTaskAddResult instances containing failure details for tasks that were not successfully created.
      Returns:
      The list of BatchTaskAddResult instances containing failure details for tasks that were not successfully created.
    • pendingTaskList

      public List<BatchTaskCreateContent> pendingTaskList()
      Gets the list of BatchTask instances containing the tasks that were not added, but for which the operation can be retried.
      Returns:
      The list of BatchTask instances containing the tasks that were not added, but for which the operation can be retried.