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