CreateTasksErrorException Class

public class CreateTasksErrorException
extends BatchErrorException

The exception that is thrown when the createTasks(String jobId, List<TaskAddParameter> taskList) operation is terminated.

Constructor Summary

Constructor Description
CreateTasksErrorException(String message, List<TaskAddResult> failureTaskList, List<TaskAddParameter> pendingTaskList)

Initializes a new instance of the CreateTasksErrorException class.

Method Summary

Modifier and Type Method and Description
List<TaskAddResult> failureTaskList()
List<TaskAddParameter> pendingTaskList()

Methods inherited from BatchErrorException

Methods inherited from com.microsoft.rest.RestException

com.microsoft.rest.RestException.response

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

CreateTasksErrorException

public CreateTasksErrorException(String message, List failureTaskList, List pendingTaskList)

Initializes a new instance of the CreateTasksErrorException class.

Parameters:

message - The exception message.
failureTaskList - The list of TaskAddResult instances containing failure details for tasks that were not successfully created.
pendingTaskList - The list of TaskAddParameter instances containing the tasks that were not added, but for which the operation can be retried.

Method Details

failureTaskList

public List failureTaskList()

Returns:

The list of TaskAddResult instances containing failure details for tasks that were not successfully created.

pendingTaskList

public List pendingTaskList()

Returns:

The list of TaskAddParameter instances containing the tasks that were not added, but for which the operation can be retried.

Applies to