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
Modifier and TypeMethodDescriptionGets the additional info for the error.getCode()
Gets the error code parsed from the body of the http error response.List<? extends ManagementError>
Gets the details for the error.Gets the error message.Gets the target of the error.toString()
-
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
Gets the error code parsed from the body of the http error response.- Returns:
- the error code parsed from the body of the http error response.
-
getMessage
Gets the error message.- Returns:
- the error message.
-
getTarget
Gets the target of the error.- Returns:
- the target of the error.
-
getDetails
Gets the details for the error.- Returns:
- the details for the error.
-
getAdditionalInfo
Gets the additional info for the error.- Returns:
- the additional info for the error.
-
toString
-