Class ErrorMessage
java.lang.Object
com.azure.resourcemanager.deviceprovisioningservices.models.ErrorMessage
Error response containing message and code.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncode()
Get the code property: standard error code.details()
Get the details property: detailed summary of error.message()
Get the message property: standard error description.void
validate()
Validates the instance.Set the code property: standard error code.withDetails
(String details) Set the details property: detailed summary of error.withMessage
(String message) Set the message property: standard error description.
-
Constructor Details
-
ErrorMessage
public ErrorMessage()
-
-
Method Details
-
code
Get the code property: standard error code.- Returns:
- the code value.
-
withCode
Set the code property: standard error code.- Parameters:
code
- the code value to set.- Returns:
- the ErrorMessage object itself.
-
message
Get the message property: standard error description.- Returns:
- the message value.
-
withMessage
Set the message property: standard error description.- Parameters:
message
- the message value to set.- Returns:
- the ErrorMessage object itself.
-
details
Get the details property: detailed summary of error.- Returns:
- the details value.
-
withDetails
Set the details property: detailed summary of error.- Parameters:
details
- the details value to set.- Returns:
- the ErrorMessage object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-