public class Error extends Object
| Constructor and Description |
|---|
Error() |
| Modifier and Type | Method and Description |
|---|---|
String |
code()
Get error code identifying the specific error.
|
String |
message()
Get error message in the caller's locale.
|
Error |
withCode(String code)
Set error code identifying the specific error.
|
Error |
withMessage(String message)
Set error message in the caller's locale.
|
public String code()
public Error withCode(String code)
code - the code value to setpublic String message()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/