BatchError Class

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

public class BatchError

An error response received from the Azure Batch service.

Method Summary

Modifier and Type Method and Description
String code()

Get the code value.

ErrorMessage message()

Get the message value.

List<BatchErrorDetail> values()

Get the values value.

BatchError withCode(String code)

Set the code value.

BatchError withMessage(ErrorMessage message)

Set the message value.

BatchError withValues(List<BatchErrorDetail> values)

Set the values value.

Method Details

code

public String code()

Get the code value.

Returns:

the code value

message

public ErrorMessage message()

Get the message value.

Returns:

the message value

values

public List values()

Get the values value.

Returns:

the values value

withCode

public BatchError withCode(String code)

Set the code value.

Parameters:

code - the code value to set

Returns:

the BatchError object itself.

withMessage

public BatchError withMessage(ErrorMessage message)

Set the message value.

Parameters:

message - the message value to set

Returns:

the BatchError object itself.

withValues

public BatchError withValues(List values)

Set the values value.

Parameters:

values - the values value to set

Returns:

the BatchError object itself.

Applies to