public class ErrorDefinition extends Object
| Constructor and Description |
|---|
ErrorDefinition() |
| Modifier and Type | Method and Description |
|---|---|
String |
code()
Get code of the error.
|
String |
message()
Get description of the error.
|
ErrorDefinition |
withCode(String code)
Set code of the error.
|
ErrorDefinition |
withMessage(String message)
Set description of the error.
|
public String message()
public ErrorDefinition withMessage(String message)
message - the message value to setpublic String code()
public ErrorDefinition withCode(String code)
code - the code 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.
*/