共用方式為


MyAzureException Class

public class MyAzureException
extends HttpResponseException

A test exception.

Constructor Summary

Constructor Description
MyAzureException(String message, HttpResponse response, HttpBinJson body)

Creates an exception with the message, response, and body.

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

MyAzureException

public MyAzureException(String message, HttpResponse response, HttpBinJson body)

Creates an exception with the message, response, and body.

Parameters:

message - Message for the exception.
response - HttpResponse associated with the service request exception.
body - HttpResponse deserialized into a HttpBinJson.

Method Details

getValue

public HttpBinJson getValue()

Overrides:

MyAzureException.getValue()

Applies to