public class Error extends Object
| Constructor and Description |
|---|
Error() |
| Modifier and Type | Method and Description |
|---|---|
String |
code()
Get error code.
|
List<ErrorDetails> |
details()
Get error details.
|
String |
innerError()
Get inner error message.
|
String |
message()
Get error message.
|
String |
target()
Get error target.
|
Error |
withCode(String code)
Set error code.
|
Error |
withDetails(List<ErrorDetails> details)
Set error details.
|
Error |
withInnerError(String innerError)
Set inner error message.
|
Error |
withMessage(String message)
Set error message.
|
Error |
withTarget(String target)
Set error target.
|
public String code()
public Error withCode(String code)
code - the code value to setpublic String message()
public Error withMessage(String message)
message - the message value to setpublic String target()
public Error withTarget(String target)
target - the target value to setpublic List<ErrorDetails> details()
public Error withDetails(List<ErrorDetails> details)
details - the details value to setpublic String innerError()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/