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
public class ManagementException extends HttpResponseException
Exception thrown for an invalid response with custom error information.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ManagementException(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ManagementErrorgetValue()StringtoString()-
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 Detail
-
ManagementException
public ManagementException(String message, HttpResponse response)
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
public ManagementException(String message, HttpResponse response, ManagementError value)
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 Detail
-
getValue
public ManagementError getValue()
- Overrides:
getValuein classHttpResponseException
-
-