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
- com.
- com.
- java.
- java.
- java.
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 Batch |
BatchErrorException(String message, Response<ResponseBody> response, BatchError body) |
Initializes a new instance of the Batch |
Method Summary
Modifier and Type | Method and Description |
---|---|
Batch |
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
addSuppressed
fillInStackTrace
getCause
getLocalizedMessage
getMessage
getStackTrace
getSuppressed
initCause
printStackTrace
printStackTrace
printStackTrace
setStackTrace
toString
Constructor Details
BatchErrorException
public BatchErrorException(String message, 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
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
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