Package com.azure.compute.batch.models
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 Summary
ConstructorsConstructorDescriptionCreateTasksErrorException
(String message, List<BatchTaskAddResult> failureTaskList, List<BatchTaskCreateContent> pendingTaskList) Initializes a new instance of the CreateTasksErrorException class. -
Method Summary
Modifier and TypeMethodDescriptionGets the list ofBatchTaskAddResult
instances containing failure details for tasks that were not successfully created.Gets the list ofBatchTask
instances containing the tasks that were not added, but for which the operation can be retried.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
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 ofBatchTaskAddResult
instances containing failure details for tasks that were not successfully created.pendingTaskList
- The list ofBatchTask
instances containing the tasks that were not added, but for which the operation can be retried.
-
-
Method Details
-
failureTaskList
Gets the list ofBatchTaskAddResult
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
Gets the list ofBatchTask
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.
-