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