ErrorDefinition Class
- java.
lang. Object - com.
azure. core. management. exception. ManagementError - com.
azure. resourcemanager. applicationinsights. models. ErrorDefinition
- com.
- com.
public final class ErrorDefinition
extends ManagementError
Error response.
Constructor Summary
| Constructor | Description |
|---|---|
| ErrorDefinition() |
Creates an instance of Error |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Error |
fromJson(JsonReader jsonReader)
Reads an instance of Error |
|
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. |
| Object |
getInnererror()
Get the innererror property: Internal error details. |
| 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
ErrorDefinition
public ErrorDefinition()
Creates an instance of ErrorDefinition class.
Method Details
fromJson
public static ErrorDefinition fromJson(JsonReader jsonReader)
Reads an instance of ErrorDefinition from the JsonReader.
Parameters:
Returns:
Throws:
getAdditionalInfo
public List<AdditionalInfo> getAdditionalInfo()
Get the additionalInfo property: Additional info for the error.
Overrides:
ErrorDefinition.getAdditionalInfo()Returns:
getCode
public String getCode()
Get the code property: The error code parsed from the body of the http error response.
Overrides:
ErrorDefinition.getCode()Returns:
getDetails
public List<ManagementError> getDetails()
Get the details property: Details for the error.
Overrides:
ErrorDefinition.getDetails()Returns:
getInnererror
public Object getInnererror()
Get the innererror property: Internal error details.
Returns:
getMessage
public String getMessage()
Get the message property: The error message parsed from the body of the http error response.
Overrides:
ErrorDefinition.getMessage()Returns:
getTarget
public String getTarget()
Get the target property: The target of the error.
Overrides:
ErrorDefinition.getTarget()Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
ErrorDefinition.toJson(JsonWriter jsonWriter)Parameters:
Throws:
validate
public void validate()
Validates the instance.