Class HttpResponseExceptionInfo
- java.lang.Object
-
- com.azure.android.core.rest.implementation.HttpResponseExceptionInfo
-
public class HttpResponseExceptionInfo extends java.lang.Object
Contains the information needed to generate a exception type to be thrown or returned when a REST API returns an error status code.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Class<?>
exceptionBodyType
java.lang.Class<? extends com.azure.android.core.http.exception.HttpResponseException>
exceptionType
-
Constructor Summary
Constructors Constructor Description HttpResponseExceptionInfo(java.lang.Class<? extends com.azure.android.core.http.exception.HttpResponseException> exceptionType)
Creates an HttpResponseExceptionInfo object with the given exception type and expected response body.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Throwable
instantiateException(com.azure.android.core.serde.jackson.JacksonSerder jacksonSerder, com.azure.android.core.http.HttpResponse httpResponse, com.azure.android.core.logging.ClientLogger logger)
-
-
-
Constructor Detail
-
HttpResponseExceptionInfo
public HttpResponseExceptionInfo(java.lang.Class<? extends com.azure.android.core.http.exception.HttpResponseException> exceptionType)
Creates an HttpResponseExceptionInfo object with the given exception type and expected response body.- Parameters:
exceptionType
- Exception type to be thrown.
-
-