你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ManagementException Class

public class ManagementException
extends HttpResponseException

Exception thrown for an invalid response with custom error information.

Constructor Summary

Constructor Description
ManagementException(String message, HttpResponse response)

Initializes a new instance of the ManagementException class.

ManagementException(String message, HttpResponse response, ManagementError value)

Initializes a new instance of the ManagementException class.

Method Summary

Modifier and Type Method and Description
ManagementError getValue()
String toString()

Methods inherited from HttpResponseException

Methods inherited from java.lang.Object

Methods inherited from java.lang.Throwable

Constructor Details

ManagementException

public ManagementException(String message, HttpResponse response)

Initializes a new instance of the ManagementException class.

Parameters:

message - the exception message or the response content if a message is not available
response - the HTTP response

ManagementException

public ManagementException(String message, HttpResponse response, ManagementError value)

Initializes a new instance of the ManagementException class.

Parameters:

message - the exception message or the response content if a message is not available
response - the HTTP response
value - the deserialized response value

Method Details

getValue

public ManagementError getValue()

Overrides:

ManagementException.getValue()

toString

public String toString()

Overrides:

ManagementException.toString()

Applies to