ApiError Class
- java.
lang. Object - com.
azure. core. management. exception. ManagementError - com.
azure. resourcemanager. compute. models. ApiError
- com.
- com.
public final class ApiError
extends ManagementError
An error response from the Compute service.
Constructor Summary
Constructor | Description |
---|---|
ApiError() |
Creates an instance of Api |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Api |
fromJson(JsonReader jsonReader)
Reads an instance of Api |
List<Additional |
getAdditionalInfo()
Get the additional |
String |
getCode()
Get the code property: The error code parsed from the body of the http error response. |
List<Management |
getDetails()
Get the details property: Details for the error. |
Inner |
getInnererror()
Get the innererror property: The Api inner error. |
String |
getMessage()
Get the message property: The error message parsed from the body of the http error response. |
String |
getTarget()
Get the target property: The target of the error. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Methods inherited from ManagementError
Methods inherited from java.lang.Object
Constructor Details
ApiError
public ApiError()
Creates an instance of ApiError class.
Method Details
fromJson
public static ApiError fromJson(JsonReader jsonReader)
Reads an instance of ApiError from the JsonReader.
Parameters:
Returns:
Throws:
getAdditionalInfo
public List
Get the additionalInfo property: Additional info for the error.
Overrides:
ApiError.getAdditionalInfo()Returns:
getCode
public String getCode()
Get the code property: The error code parsed from the body of the http error response.
Overrides:
ApiError.getCode()Returns:
getDetails
public List
Get the details property: Details for the error.
Overrides:
ApiError.getDetails()Returns:
getInnererror
public InnerError getInnererror()
Get the innererror property: The Api inner error.
Returns:
getMessage
public String getMessage()
Get the message property: The error message parsed from the body of the http error response.
Overrides:
ApiError.getMessage()Returns:
getTarget
public String getTarget()
Get the target property: The target of the error.
Overrides:
ApiError.getTarget()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ApiError.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.