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
public class MyAzureException extends HttpResponseException
A test exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MyAzureException(String message, HttpResponse response, com.azure.core.test.implementation.entities.HttpBinJSON body)Creates an exception with themessage,response, andbody.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description com.azure.core.test.implementation.entities.HttpBinJSONgetValue()-
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
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 Detail
-
getValue
public com.azure.core.test.implementation.entities.HttpBinJSON getValue()
- Overrides:
getValuein classHttpResponseException
-
-