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 set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/