Class ManagementError
- java.lang.Object
-
- com.azure.core.management.exception.ManagementError
-
public class ManagementError extends Object
An instance of this class provides additional information about an http error response.
-
-
Constructor Summary
Constructors Constructor Description ManagementError()Constructs a newManagementErrorobject.ManagementError(String code, String message)Constructs a newManagementErrorobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<AdditionalInfo>getAdditionalInfo()StringgetCode()List<? extends ManagementError>getDetails()StringgetMessage()StringgetTarget()StringtoString()
-
-
-
Constructor Detail
-
ManagementError
public ManagementError()
Constructs a newManagementErrorobject.
-
ManagementError
public ManagementError(String code, String message)
Constructs a newManagementErrorobject.- Parameters:
code- the error code.message- the error message.
-
-
Method Detail
-
getCode
public String getCode()
- Returns:
- the error code parsed from the body of the http error response.
-
getMessage
public String getMessage()
- Returns:
- the error message.
-
getTarget
public String getTarget()
- Returns:
- the target of the error.
-
getDetails
public List<? extends ManagementError> getDetails()
- Returns:
- the details for the error.
-
getAdditionalInfo
public List<AdditionalInfo> getAdditionalInfo()
- Returns:
- the additional info for the error.
-
-