public final class AzureResourceErrorInfo extends ErrorInfo
Constructor and Description |
---|
AzureResourceErrorInfo() |
Modifier and Type | Method and Description |
---|---|
List<AzureResourceErrorInfo> |
details()
Get the details property: The error details.
|
String |
message()
Get the message property: The error message.
|
void |
validate()
Validates the instance.
|
AzureResourceErrorInfo |
withCode(String code)
Set the code property: The error code.
|
AzureResourceErrorInfo |
withDetails(List<AzureResourceErrorInfo> details)
Set the details property: The error details.
|
AzureResourceErrorInfo |
withMessage(String message)
Set the message property: The error message.
|
public String message()
public AzureResourceErrorInfo withMessage(String message)
message
- the message value to set.public List<AzureResourceErrorInfo> details()
public AzureResourceErrorInfo withDetails(List<AzureResourceErrorInfo> details)
details
- the details value to set.public AzureResourceErrorInfo withCode(String code)
public void validate()
validate
in class ErrorInfo
IllegalArgumentException
- thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.