Class PollResult.Error
- java.lang.Object
-
- com.azure.core.management.polling.PollResult.Error
-
- Enclosing class:
- PollResult<T>
public static class PollResult.Error extends Object
Type represents the error that poll-operation received from the service.
-
-
Constructor Summary
Constructors Constructor Description Error(String message, int responseStatusCode, HttpHeaders responseHeaders, String responseBody)Creates Error.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()StringgetResponseBody()HttpHeadersgetResponseHeaders()intgetResponseStatusCode()
-
-
-
Constructor Detail
-
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 Detail
-
getMessage
public String getMessage()
- Returns:
- the error message
-
getResponseStatusCode
public int getResponseStatusCode()
- Returns:
- the response status code associated with the error
-
getResponseBody
public String getResponseBody()
- Returns:
- the response body associated with the error
-
getResponseHeaders
public HttpHeaders getResponseHeaders()
- Returns:
- the response headers associated with the error
-
-