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