Class Error
java.lang.Object
com.azure.resourcemanager.workloads.models.Error
- Direct Known Subclasses:
MonitorPropertiesErrors
,ProviderInstancePropertiesErrors
Standard error object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: Server-defined set of error codes.details()
Get the details property: Array of details about specific errors that led to this reported error.Get the innerError property: Object containing more specific information than the current object about the error.message()
Get the message property: Human-readable representation of the error.target()
Get the target property: Target of the error.void
validate()
Validates the instance.
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
Get the code property: Server-defined set of error codes.- Returns:
- the code value.
-
message
Get the message property: Human-readable representation of the error.- Returns:
- the message value.
-
target
Get the target property: Target of the error.- Returns:
- the target value.
-
details
Get the details property: Array of details about specific errors that led to this reported error.- Returns:
- the details value.
-
innerError
Get the innerError property: Object containing more specific information than the current object about the error.- Returns:
- the innerError value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-