public class ErrorResponse extends Object
| Constructor and Description |
|---|
ErrorResponse() |
| Modifier and Type | Method and Description |
|---|---|
String |
code()
Get an identifier for the error.
|
String |
message()
Get a message describing the error, intended to be suitable for display in a user interface.
|
ErrorResponse |
withCode(String code)
Set an identifier for the error.
|
ErrorResponse |
withMessage(String message)
Set a message describing the error, intended to be suitable for display in a user interface.
|
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.
*/