Class 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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • exceptionType

        public final java.lang.Class<? extends com.azure.android.core.http.exception.HttpResponseException> exceptionType
      • exceptionBodyType

        public final java.lang.Class<?> exceptionBodyType
    • 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.
    • Method Detail

      • instantiateException

        public 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)