Class Error
java.lang.Object
com.azure.resourcemanager.appplatform.models.Error
The error code compose of code and message.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncode()Get the code property: The code of error.message()Get the message property: The message of error.voidvalidate()Validates the instance.Set the code property: The code of error.withMessage(String message) Set the message property: The message of error.
-
Constructor Details
-
Error
public Error()
-
-
Method Details
-
code
Get the code property: The code of error.- Returns:
- the code value.
-
withCode
Set the code property: The code of error.- Parameters:
code- the code value to set.- Returns:
- the Error object itself.
-
message
Get the message property: The message of error.- Returns:
- the message value.
-
withMessage
Set the message property: The message of error.- Parameters:
message- the message value to set.- Returns:
- the Error object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-