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