TaskFailureInformation Class

  • java.lang.Object
    • com.microsoft.azure.batch.protocol.models.TaskFailureInformation

public class TaskFailureInformation

Information about a Task failure.

Constructor Summary

Constructor Description
TaskFailureInformation()

Method Summary

Modifier and Type Method and Description
ErrorCategory category()

Get possible values include: 'userError', 'serverError'.

String code()

Get the code value.

List<NameValuePair> details()

Get the details value.

String message()

Get the message value.

TaskFailureInformation withCategory(ErrorCategory category)

Set possible values include: 'userError', 'serverError'.

TaskFailureInformation withCode(String code)

Set the code value.

TaskFailureInformation withDetails(List<NameValuePair> details)

Set the details value.

TaskFailureInformation withMessage(String message)

Set the message value.

Methods inherited from java.lang.Object

Constructor Details

TaskFailureInformation

public TaskFailureInformation()

Method Details

category

public ErrorCategory category()

Get possible values include: 'userError', 'serverError'.

Returns:

the category value

code

public String code()

Get the code value.

Returns:

the code value

details

public List details()

Get the details value.

Returns:

the details value

message

public String message()

Get the message value.

Returns:

the message value

withCategory

public TaskFailureInformation withCategory(ErrorCategory category)

Set possible values include: 'userError', 'serverError'.

Parameters:

category - the category value to set

Returns:

the TaskFailureInformation object itself.

withCode

public TaskFailureInformation withCode(String code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the TaskFailureInformation object itself.

withDetails

public TaskFailureInformation withDetails(List details)

Set the details value.

Parameters:

details - the details value to set

Returns:

the TaskFailureInformation object itself.

withMessage

public TaskFailureInformation withMessage(String message)

Set the message value.

Parameters:

message - the message value to set

Returns:

the TaskFailureInformation object itself.

Applies to