Package com.azure.android.core.test
Class MyRestException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.azure.android.core.exception.AzureException
-
- com.azure.android.core.http.exception.HttpResponseException
-
- com.azure.android.core.test.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
-
-
-
-
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 ofresponse
.
-
-
Method Detail
-
getValue
public HttpBinJSON getValue()
- Overrides:
getValue
in classcom.azure.android.core.http.exception.HttpResponseException
-
-