共用方式為


MyRestException Class

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

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()

Applies to