Class ManagementError
java.lang.Object
com.azure.core.management.exception.ManagementError
An instance of this class provides additional information about an http error response.
-
Constructor Summary
ConstructorDescriptionConstructs a newManagementError
object.ManagementError
(String code, String message) Constructs a newManagementError
object. -
Method Summary
-
Constructor Details
-
ManagementError
public ManagementError()Constructs a newManagementError
object. -
ManagementError
Constructs a newManagementError
object.- Parameters:
code
- the error code.message
- the error message.
-
-
Method Details
-
getCode
- Returns:
- the error code parsed from the body of the http error response.
-
getMessage
- Returns:
- the error message.
-
getTarget
- Returns:
- the target of the error.
-
getDetails
- Returns:
- the details for the error.
-
getAdditionalInfo
- Returns:
- the additional info for the error.
-
toString
-