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 TypeMethodDescriptionGets the error message.Gets the response body associated with the error.Gets the response headers associated with the error.int
Gets the response status code associated with the error.
-
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
Gets the error message.- Returns:
- the error message
-
getResponseStatusCode
public int getResponseStatusCode()Gets the response status code associated with the error.- Returns:
- the response status code associated with the error
-
getResponseBody
Gets the response body associated with the error.- Returns:
- the response body associated with the error
-
getResponseHeaders
Gets the response headers associated with the error.- Returns:
- the response headers associated with the error
-