Class MyRestException

All Implemented Interfaces:
Serializable

public class MyRestException extends HttpResponseException
A test exception.
See Also:
  • 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 of response.
  • Method Details

    • getValue

      public com.azure.core.test.implementation.entities.HttpBinJSON getValue()
      Overrides:
      getValue in class HttpResponseException
      Returns:
      The deserialized HTTP response value.