Package com.microsoft.azure.batch
Class CreateTasksErrorException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.microsoft.rest.RestException
-
- com.microsoft.azure.batch.protocol.models.BatchErrorException
-
- com.microsoft.azure.batch.CreateTasksErrorException
-
- All Implemented Interfaces:
Serializable
public class CreateTasksErrorException extends BatchErrorException
The exception that is thrown when theTaskOperations.createTasks(String, List)
operation is terminated.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CreateTasksErrorException(String message, List<TaskAddResult> failureTaskList, List<TaskAddParameter> pendingTaskList)
Initializes a new instance of the CreateTasksErrorException class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<TaskAddResult>
failureTaskList()
List<TaskAddParameter>
pendingTaskList()
-
Methods inherited from class com.microsoft.azure.batch.protocol.models.BatchErrorException
body
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
CreateTasksErrorException
public CreateTasksErrorException(String message, List<TaskAddResult> failureTaskList, List<TaskAddParameter> pendingTaskList)
Initializes a new instance of the CreateTasksErrorException class.- Parameters:
message
- The exception message.failureTaskList
- The list ofTaskAddResult
instances containing failure details for tasks that were not successfully created.pendingTaskList
- The list ofTaskAddParameter
instances containing the tasks that were not added, but for which the operation can be retried.
-
-
Method Detail
-
failureTaskList
public List<TaskAddResult> failureTaskList()
- Returns:
- The list of
TaskAddResult
instances containing failure details for tasks that were not successfully created.
-
pendingTaskList
public List<TaskAddParameter> pendingTaskList()
- Returns:
- The list of
TaskAddParameter
instances containing the tasks that were not added, but for which the operation can be retried.
-
-