BatchErrorException Class

  • java.lang.Object
    • java.lang.Throwable
      • java.lang.Exception
        • java.lang.RuntimeException
          • com.microsoft.rest.RestException
            • com.microsoft.azure.batch.protocol.models.BatchErrorException

public class BatchErrorException
extends com.microsoft.rest.RestException

Exception thrown for an invalid response with BatchError information.

Constructor Summary

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

Initializes a new instance of the BatchErrorException class.

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

Initializes a new instance of the BatchErrorException class.

Method Summary

Modifier and Type Method and Description
BatchError body()

Methods inherited from com.microsoft.rest.RestException

com.microsoft.rest.RestException.body com.microsoft.rest.RestException.response

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

BatchErrorException

public BatchErrorException(String message, 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(String message, Response response, 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()

Overrides:

BatchErrorException.body()

Applies to