public class ErrorInfo extends Object
| Constructor | Description |
|---|---|
ErrorInfo() |
| Modifier and Type | Method | Description |
|---|---|---|
Object |
additionalProperties() |
Get the additionalProperties value.
|
String |
code() |
Get a machine readable error code.
|
List<ErrorDetail> |
details() |
Get error details.
|
ErrorInfo |
innererror() |
Get inner error details if they exist.
|
String |
message() |
Get a human readable error message.
|
ErrorInfo |
withAdditionalProperties(Object additionalProperties) |
Set the additionalProperties value.
|
ErrorInfo |
withCode(String code) |
Set a machine readable error code.
|
ErrorInfo |
withDetails(List<ErrorDetail> details) |
Set error details.
|
ErrorInfo |
withInnererror(ErrorInfo innererror) |
Set inner error details if they exist.
|
ErrorInfo |
withMessage(String message) |
Set a human readable error message.
|
public String code()
public ErrorInfo withCode(String code)
code - the code value to setpublic String message()
public ErrorInfo withMessage(String message)
message - the message value to setpublic List<ErrorDetail> details()
public ErrorInfo withDetails(List<ErrorDetail> details)
details - the details value to setpublic ErrorInfo innererror()
public ErrorInfo withInnererror(ErrorInfo innererror)
innererror - the innererror value to setpublic Object additionalProperties()
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/