public class ErrorResponse extends Object
Constructor and Description |
---|
ErrorResponse() |
Modifier and Type | Method and Description |
---|---|
String |
code()
Get error code.
|
String |
message()
Get error message indicating why the operation failed.
|
ErrorResponse |
withCode(String code)
Set error code.
|
ErrorResponse |
withMessage(String message)
Set error message indicating why the operation failed.
|
public String code()
public ErrorResponse withCode(String code)
code
- the code value to setpublic String message()
public ErrorResponse withMessage(String message)
message
- the message value to setCopyright © 2019. All rights reserved.