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
public class MyRestException extends HttpResponseException
A test exception.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description MyRestException(String message, HttpResponse response, com.azure.core.test.implementation.entities.HttpBinJSON body)Creates a service request exception.
-
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
-
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 Detail
-
getValue
public com.azure.core.test.implementation.entities.HttpBinJSON getValue()
- Overrides:
getValuein classHttpResponseException
-
-