Class ErrorInfo
java.lang.Object
com.azure.core.management.exception.ManagementError
com.azure.resourcemanager.databricks.models.ErrorInfo
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.exception.ManagementError>
public final class ErrorInfo
extends com.azure.core.management.exception.ManagementError
Error response.
Contains details when the response code indicates an error.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ErrorInfofromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ErrorInfo 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: Inner error details if they exist.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
-
ErrorInfo
public ErrorInfo()Creates an instance of ErrorInfo class.
-
-
Method Details
-
getInnererror
Get the innererror property: Inner error details if they exist.- 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 ErrorInfo from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ErrorInfo 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 ErrorInfo.
-