MyRestException Class
- 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
- com.
- com.
- com.
- java.
- java.
- java.
public class MyRestException
extends HttpResponseException
A test exception.
Constructor Summary
| Constructor | Description |
|---|---|
| MyRestException(String message, HttpResponse response, HttpBinJson body) |
Creates a service request exception. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| com.azure.core.test.implementation.entities.HttpBinJson | getValue() |
Methods inherited from HttpResponseException
Methods inherited from java.lang.Object
Methods inherited from 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, 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 Details
getValue
public HttpBinJson getValue()
Overrides:
MyRestException.getValue()