Package com.azure.core.test
Class MyAzureException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.azure.core.exception.AzureException
com.azure.core.exception.HttpResponseException
com.azure.core.test.MyAzureException
- All Implemented Interfaces:
Serializable
A test exception.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMyAzureException(String message, HttpResponse response, com.azure.core.test.implementation.entities.HttpBinJSON body) Creates an exception with themessage,response, andbody. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.test.implementation.entities.HttpBinJSONgetValue()Methods inherited from class com.azure.core.exception.HttpResponseException
getResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
MyAzureException
public MyAzureException(String message, HttpResponse response, com.azure.core.test.implementation.entities.HttpBinJSON body) Creates an exception with themessage,response, andbody.- Parameters:
message- Message for the exception.response- HttpResponse associated with the service request exception.body- HttpResponse deserialized into aHttpBinJSON.
-
-
Method Details
-
getValue
public com.azure.core.test.implementation.entities.HttpBinJSON getValue()- Overrides:
getValuein classHttpResponseException
-