BatchErrorException Class

  • java.lang.Object
    • RestException
      • com.microsoft.azure.batch.protocol.models.BatchErrorException

public class BatchErrorException

Exception thrown for an invalid response with BatchError information.

Constructor Summary

Constructor Description
BatchErrorException(final String message, final Response<ResponseBody> response)

Initializes a new instance of the BatchErrorException class.

BatchErrorException(final String message, final Response<ResponseBody> response, final BatchError body)

Initializes a new instance of the BatchErrorException class.

Method Summary

Modifier and Type Method and Description
BatchError body()

Constructor Details

BatchErrorException

public BatchErrorException(final String message, final Response response)

Initializes a new instance of the BatchErrorException class.

Parameters:

message - the exception message or the response content if a message is not available
response - the HTTP response

BatchErrorException

public BatchErrorException(final String message, final Response response, final BatchError body)

Initializes a new instance of the BatchErrorException class.

Parameters:

message - the exception message or the response content if a message is not available
response - the HTTP response
body - the deserialized response body

Method Details

body

public BatchError body()

Applies to