Error Class
- java.
lang. Object - com.
azure. resourcemanager. appplatform. models. Error
- com.
public final class Error
The error code compose of code and message.
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: The code of error. |
String |
message()
Get the message property: The message of error. |
void |
validate()
Validates the instance. |
Error |
withCode(String code)
Set the code property: The code of error. |
Error |
withMessage(String message)
Set the message property: The message of error. |
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: The code of error.
Returns:
message
public String message()
Get the message property: The message of error.
Returns:
validate
public void validate()
Validates the instance.
withCode
public Error withCode(String code)
Set the code property: The code of error.
Parameters:
Returns:
withMessage
public Error withMessage(String message)
Set the message property: The message of error.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for