Error Class
- java.
lang. Object - com.
azure. resourcemanager. workloads. models. Error
- com.
Implements
public class Error
implements JsonSerializable<Error>
Standard error object.
Constructor Summary
| Constructor | Description |
|---|---|
| Error() |
Creates an instance of Error class. |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
code()
Get the code property: Server-defined set of error codes. |
| List<Error> |
details()
Get the details property: Array of details about specific errors that led to this reported error. |
| static Error |
fromJson(JsonReader jsonReader)
Reads an instance of Error from the Json |
|
Error |
innerError()
Get the inner |
| String |
message()
Get the message property: Human-readable representation of the error. |
| String |
target()
Get the target property: Target of the error. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
Methods inherited from java.lang.Object
Constructor Details
Error
public Error()
Creates an instance of Error class.
Method Details
code
public String code()
Get the code property: Server-defined set of error codes.
Returns:
details
public List<Error> details()
Get the details property: Array of details about specific errors that led to this reported error.
Returns:
fromJson
public static Error fromJson(JsonReader jsonReader)
Reads an instance of Error from the JsonReader.
Parameters:
Returns:
Throws:
innerError
public ErrorInnerError innerError()
Get the innerError property: Object containing more specific information than the current object about the error.
Returns:
message
public String message()
Get the message property: Human-readable representation of the error.
Returns:
target
public String target()
Get the target property: Target of the error.
Returns:
toJson
validate
public void validate()
Validates the instance.