ErrorMesssage Class
- java.
lang. Object - com.
azure. resourcemanager. deviceprovisioningservices. models. ErrorMesssage
- com.
public final class ErrorMesssage
Error response containing message and code.
Constructor Summary
Constructor | Description | |
---|---|---|
ErrorMesssage() |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
code()
Get the code property: standard error code. |
String |
details()
Get the details property: detailed summary of error. |
String |
message()
Get the message property: standard error description. |
void |
validate()
Validates the instance. |
Error |
withCode(String code)
Set the code property: standard error code. |
Error |
withDetails(String details)
Set the details property: detailed summary of error. |
Error |
withMessage(String message)
Set the message property: standard error description. |
Methods inherited from java.lang.Object
Constructor Details
ErrorMesssage
public ErrorMesssage()
Method Details
code
public String code()
Get the code property: standard error code.
Returns:
details
public String details()
Get the details property: detailed summary of error.
Returns:
message
public String message()
Get the message property: standard error description.
Returns:
validate
public void validate()
Validates the instance.
withCode
public ErrorMesssage withCode(String code)
Set the code property: standard error code.
Parameters:
Returns:
withDetails
public ErrorMesssage withDetails(String details)
Set the details property: detailed summary of error.
Parameters:
Returns:
withMessage
public ErrorMesssage withMessage(String message)
Set the message property: standard error description.
Parameters:
Returns:
Applies to
Azure SDK for Java