ManagementError Class
- java.
lang. Object - com.
azure. core. management. exception. ManagementError
- com.
Implements
public class ManagementError
implements JsonSerializable<ManagementError>
An instance of this class provides additional information about an http error response.
Constructor Summary
Constructor | Description |
---|---|
ManagementError() |
Constructs a new ManagementError object. |
ManagementError(String code, String message) |
Constructs a new ManagementError object. |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Management |
fromJson(JsonReader jsonReader)
Reads a JSON stream into a ManagementError. |
List<Additional |
getAdditionalInfo()
Gets the additional info for the error. |
String |
getCode()
Gets the error code parsed from the body of the http error response. |
List<> |
getDetails()
Gets the details for the error. |
String |
getMessage()
Gets the error message. |
String |
getTarget()
Gets the target of the error. |
Json |
toJson(JsonWriter jsonWriter) |
String | toString() |
Methods inherited from java.lang.Object
Constructor Details
ManagementError
public ManagementError()
Constructs a new ManagementError object.
ManagementError
public ManagementError(String code, String message)
Constructs a new ManagementError object.
Parameters:
Method Details
fromJson
public static ManagementError fromJson(JsonReader jsonReader)
Reads a JSON stream into a ManagementError.
Parameters:
Returns:
Throws:
getAdditionalInfo
public List
Gets the additional info for the error.
Returns:
getCode
public String getCode()
Gets the error code parsed from the body of the http error response.
Returns:
getDetails
public List getDetails()
Gets the details for the error.
Returns:
getMessage
public String getMessage()
Gets the error message.
Returns:
getTarget
public String getTarget()
Gets the target of the error.
Returns:
toJson
toString
public String toString()
Overrides:
ManagementError.toString()Applies to
Azure SDK for Java