Class Error
java.lang.Object
com.azure.core.management.exception.ManagementError
com.azure.resourcemanager.keyvault.models.Error
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.exception.ManagementError>
public final class Error
extends com.azure.core.management.exception.ManagementError
The error exception.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of Error from the JsonReader.List<com.azure.core.management.exception.AdditionalInfo> Get the additionalInfo property: Additional info for the error.getCode()Get the code property: The error code parsed from the body of the http error response.List<com.azure.core.management.exception.ManagementError> Get the details property: Details for the error.Get the innerError property: The inner error, contains a more specific error code.Get the message property: The error message parsed from the body of the http error response.Get the target property: The target of the error.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.Methods inherited from class com.azure.core.management.exception.ManagementError
toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
Error
public Error()Creates an instance of Error class.
-
-
Method Details
-
getInnerError
Get the innerError property: The inner error, contains a more specific error code.- Returns:
- the innerError value.
-
getAdditionalInfo
Get the additionalInfo property: Additional info for the error.- Overrides:
getAdditionalInfoin classcom.azure.core.management.exception.ManagementError- Returns:
- the additionalInfo value.
-
getDetails
Get the details property: Details for the error.- Overrides:
getDetailsin classcom.azure.core.management.exception.ManagementError- Returns:
- the details value.
-
getTarget
Get the target property: The target of the error.- Overrides:
getTargetin classcom.azure.core.management.exception.ManagementError- Returns:
- the target value.
-
getMessage
Get the message property: The error message parsed from the body of the http error response.- Overrides:
getMessagein classcom.azure.core.management.exception.ManagementError- Returns:
- the message value.
-
getCode
Get the code property: The error code parsed from the body of the http error response.- Overrides:
getCodein classcom.azure.core.management.exception.ManagementError- Returns:
- the code value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.exception.ManagementError>- Overrides:
toJsonin classcom.azure.core.management.exception.ManagementError- Throws:
IOException
-
fromJson
Reads an instance of Error from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of Error if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the Error.
-