ErrorDetails Class
- java.
lang. Object - com.
azure. resourcemanager. resourcegraph. models. ErrorDetails
- com.
public final class ErrorDetails
Error details.
Constructor Summary
Constructor | Description |
---|---|
ErrorDetails() |
Creates an instance of Error |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
String |
code()
Get the code property: Error code identifying the specific error. |
String |
message()
Get the message property: A human readable error message. |
void |
validate()
Validates the instance. |
Error |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Error |
withCode(String code)
Set the code property: Error code identifying the specific error. |
Error |
withMessage(String message)
Set the message property: A human readable error message. |
Methods inherited from java.lang.Object
Constructor Details
ErrorDetails
public ErrorDetails()
Creates an instance of ErrorDetails class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: Error details.
Returns:
code
public String code()
Get the code property: Error code identifying the specific error.
Returns:
message
public String message()
Get the message property: A human readable error message.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalProperties
public ErrorDetails withAdditionalProperties(Map
Set the additionalProperties property: Error details.
Parameters:
Returns:
withCode
public ErrorDetails withCode(String code)
Set the code property: Error code identifying the specific error.
Parameters:
Returns:
withMessage
public ErrorDetails withMessage(String message)
Set the message property: A human readable error message.
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