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
ConstructorDescriptionManagementException
(String message, HttpResponse response) Initializes a new instance of theManagementException
class.ManagementException
(String message, HttpResponse response, ManagementError value) Initializes a new instance of theManagementException
class. -
Method Summary
Methods inherited from class com.azure.core.exception.HttpResponseException
getResponse
Methods 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 theManagementException
class.- Parameters:
message
- the exception message or the response content if a message is not availableresponse
- the HTTP response
-
ManagementException
Initializes a new instance of theManagementException
class.- 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
Description copied from class:com.azure.core.exception.HttpResponseException
Gets the deserialized HTTP response value.- Overrides:
getValue
in classHttpResponseException
- Returns:
- The deserialized HTTP response value.
-
toString
-