Package com.azure.core.test
Class MyRestException
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.MyRestException
- All Implemented Interfaces:
Serializable
A test exception.
- See Also:
-
Constructor Summary
ConstructorDescriptionMyRestException
(String message, HttpResponse response, com.azure.core.test.implementation.entities.HttpBinJSON body) Creates a service request exception. -
Method Summary
Modifier and TypeMethodDescriptioncom.azure.core.test.implementation.entities.HttpBinJSON
getValue()
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 Details
-
MyRestException
public MyRestException(String message, HttpResponse response, com.azure.core.test.implementation.entities.HttpBinJSON body) Creates a service request exception.- Parameters:
message
- Message associated with exception.response
- HttpResponse associated with the exception.body
- Deserialized body ofresponse
.
-
-
Method Details
-
getValue
public com.azure.core.test.implementation.entities.HttpBinJSON getValue()- Overrides:
getValue
in classHttpResponseException
- Returns:
- The deserialized HTTP response value.
-