BatchErrorException Class
- java.
lang. Object - RestException
- com.
microsoft. azure. batch. protocol. models. BatchErrorException
- com.
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 |
---|---|
Batch |
body() |
Constructor Details
BatchErrorException
public BatchErrorException(final String message, final 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
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for Java