Class PollResult.Error
java.lang.Object
com.azure.core.management.polling.PollResult.Error
- Enclosing class:
- PollResult<T>
Type represents the error that poll-operation received from the service.
-
Constructor Summary
ConstructorDescriptionError
(String message, int responseStatusCode, HttpHeaders responseHeaders, String responseBody) Creates Error. -
Method Summary
Modifier and TypeMethodDescriptionint
-
Constructor Details
-
Error
public Error(String message, int responseStatusCode, HttpHeaders responseHeaders, String responseBody) Creates Error.- Parameters:
message
- the error messageresponseStatusCode
- the http status code associated with the errorresponseHeaders
- the http response headers associated with the errorresponseBody
- the http response body associated with the error
-
-
Method Details
-
getMessage
- Returns:
- the error message
-
getResponseStatusCode
public int getResponseStatusCode()- Returns:
- the response status code associated with the error
-
getResponseBody
- Returns:
- the response body associated with the error
-
getResponseHeaders
- Returns:
- the response headers associated with the error
-