Class MyRestException

  • All Implemented Interfaces:
    java.io.Serializable

    public class MyRestException
    extends com.azure.android.core.http.exception.HttpResponseException
    A test exception.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      MyRestException​(java.lang.String message, com.azure.android.core.http.HttpResponse response, HttpBinJSON body)
      Creates a service request exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      HttpBinJSON getValue()  
      • Methods inherited from class com.azure.android.core.http.exception.HttpResponseException

        getResponse
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • MyRestException

        public MyRestException​(java.lang.String message,
                               com.azure.android.core.http.HttpResponse response,
                               HttpBinJSON body)
        Creates a service request exception.
        Parameters:
        message - Message associated with exception.
        response - HttpResponse associated with the exception.
        body - Deserialized body of response.
    • Method Detail

      • getValue

        public HttpBinJSON getValue()
        Overrides:
        getValue in class com.azure.android.core.http.exception.HttpResponseException