Class ErrorResponse
java.lang.Object
com.azure.resourcemanager.storagecache.models.ErrorResponse
Describes the format of Error response.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: Error code.message()
Get the message property: Error message indicating why the operation failed.void
validate()
Validates the instance.Set the code property: Error code.withMessage
(String message) Set the message property: Error message indicating why the operation failed.
-
Constructor Details
-
ErrorResponse
public ErrorResponse()
-
-
Method Details
-
code
Get the code property: Error code.- Returns:
- the code value.
-
withCode
Set the code property: Error code.- Parameters:
code
- the code value to set.- Returns:
- the ErrorResponse object itself.
-
message
Get the message property: Error message indicating why the operation failed.- Returns:
- the message value.
-
withMessage
Set the message property: Error message indicating why the operation failed.- Parameters:
message
- the message value to set.- Returns:
- the ErrorResponse object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-