PollResult.Error Class
- java.
lang. Object - com.
azure. core. management. polling. PollResult. Error
- com.
public static class PollResult.Error
Type represents the error that poll-operation received from the service.
Constructor Summary
Constructor | Description |
---|---|
Error(String message, int responseStatusCode, HttpHeaders responseHeaders, String responseBody) |
Creates Error. |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
getMessage()
Gets the error message. |
String |
getResponseBody()
Gets the response body associated with the error. |
Http |
getResponseHeaders()
Gets the response headers associated with the error. |
int |
getResponseStatusCode()
Gets the response status code associated with the error. |
Methods inherited from java.lang.Object
Constructor Details
Error
public Error(String message, int responseStatusCode, HttpHeaders responseHeaders, String responseBody)
Creates Error.
Parameters:
Method Details
getMessage
public String getMessage()
Gets the error message.
Returns:
getResponseBody
public String getResponseBody()
Gets the response body associated with the error.
Returns:
getResponseHeaders
public HttpHeaders getResponseHeaders()
Gets the response headers associated with the error.
Returns:
getResponseStatusCode
public int getResponseStatusCode()
Gets the response status code associated with the error.
Returns: