Class ManagementException
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.management.exception.ManagementException
- All Implemented Interfaces:
Serializable
Exception thrown for an invalid response with custom error information.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionManagementException(String message, HttpResponse response) Initializes a new instance of theManagementExceptionclass.ManagementException(String message, HttpResponse response, ManagementError value) Initializes a new instance of theManagementExceptionclass. -
Method Summary
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponseMethods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
ManagementException
Initializes a new instance of theManagementExceptionclass.- Parameters:
message- the exception message or the response content if a message is not availableresponse- the HTTP response
-
ManagementException
Initializes a new instance of theManagementExceptionclass.- Parameters:
message- the exception message or the response content if a message is not availableresponse- the HTTP responsevalue- the deserialized response value
-
-
Method Details
-
getValue
- Overrides:
getValuein classHttpResponseException- Returns:
- The deserialized HTTP response value.
-
toString
-