TaskFailureInformation Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. TaskFailureInformation
- com.
public class TaskFailureInformation
Information about a task failure.
Method Summary
Modifier and Type | Method and Description |
---|---|
Error |
category()
Get possible values include: 'userError', 'serverError'. |
String |
code()
Get the code value. |
List<Name |
details()
Get the details value. |
String |
message()
Get the message value. |
Task |
withCategory(ErrorCategory category)
Set possible values include: 'userError', 'serverError'. |
Task |
withCode(String code)
Set the code value. |
Task |
withDetails(List<NameValuePair> details)
Set the details value. |
Task |
withMessage(String message)
Set the message value. |
Method Details
category
public ErrorCategory category()
Get possible values include: 'userError', 'serverError'.
Returns:
code
public String code()
Get the code value.
Returns:
details
public List
Get the details value.
Returns:
message
public String message()
Get the message value.
Returns:
withCategory
public TaskFailureInformation withCategory(ErrorCategory category)
Set possible values include: 'userError', 'serverError'.
Parameters:
Returns:
withCode
public TaskFailureInformation withCode(String code)
Set the code value.
Parameters:
Returns:
withDetails
public TaskFailureInformation withDetails(List
Set the details value.
Parameters:
Returns:
withMessage
public TaskFailureInformation withMessage(String message)
Set the message value.
Parameters:
Returns:
Applies to
Azure SDK for Java