Error Class
- java.
lang. Object - com.
microsoft. azure. management. resourcegraph. v2019_04_01.Error
- com.
public class Error
Error info. Error details.
Constructor Summary
| Constructor | Description | |
|---|---|---|
| Error() | ||
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| java.lang.String |
code()
Get error code identifying the specific error. |
|
java.util.List<Error |
details()
Get error details. |
| java.lang.String |
message()
Get a human readable error message. |
| Error |
withCode(String code)
Set error code identifying the specific error. |
| Error |
withDetails(List<ErrorDetails> details)
Set error details. |
| Error |
withMessage(String message)
Set a human readable error message. |
Methods inherited from java.lang.Object
Constructor Details
Error
public Error()
Method Details
code
public String code()
Get error code identifying the specific error.
Returns:
details
public List<ErrorDetails> details()
Get error details.
Returns:
message
public String message()
Get a human readable error message.
Returns:
withCode
public Error withCode(String code)
Set error code identifying the specific error.
Parameters:
Returns:
withDetails
public Error withDetails(List<ErrorDetails> details)
Set error details.
Parameters:
Returns:
withMessage
public Error withMessage(String message)
Set a human readable error message.
Parameters:
Returns: