public final class ErrorEntity extends Object
| Constructor and Description |
|---|
ErrorEntity() |
| Modifier and Type | Method and Description |
|---|---|
String |
code()
Get the code property: Basic error code.
|
List<ErrorEntity> |
details()
Get the details property: Error Details.
|
String |
extendedCode()
Get the extendedCode property: Type of error.
|
List<ErrorEntity> |
innerErrors()
Get the innerErrors property: Inner errors.
|
String |
message()
Get the message property: Any details of the error.
|
String |
messageTemplate()
Get the messageTemplate property: Message template.
|
List<String> |
parameters()
Get the parameters property: Parameters for the template.
|
String |
target()
Get the target property: The error target.
|
void |
validate()
Validates the instance.
|
ErrorEntity |
withCode(String code)
Set the code property: Basic error code.
|
ErrorEntity |
withDetails(List<ErrorEntity> details)
Set the details property: Error Details.
|
ErrorEntity |
withExtendedCode(String extendedCode)
Set the extendedCode property: Type of error.
|
ErrorEntity |
withInnerErrors(List<ErrorEntity> innerErrors)
Set the innerErrors property: Inner errors.
|
ErrorEntity |
withMessage(String message)
Set the message property: Any details of the error.
|
ErrorEntity |
withMessageTemplate(String messageTemplate)
Set the messageTemplate property: Message template.
|
ErrorEntity |
withParameters(List<String> parameters)
Set the parameters property: Parameters for the template.
|
ErrorEntity |
withTarget(String target)
Set the target property: The error target.
|
public String extendedCode()
public ErrorEntity withExtendedCode(String extendedCode)
extendedCode - the extendedCode value to set.public String messageTemplate()
public ErrorEntity withMessageTemplate(String messageTemplate)
messageTemplate - the messageTemplate value to set.public List<String> parameters()
public ErrorEntity withParameters(List<String> parameters)
parameters - the parameters value to set.public List<ErrorEntity> innerErrors()
public ErrorEntity withInnerErrors(List<ErrorEntity> innerErrors)
innerErrors - the innerErrors value to set.public List<ErrorEntity> details()
public ErrorEntity withDetails(List<ErrorEntity> details)
details - the details value to set.public String target()
public ErrorEntity withTarget(String target)
target - the target value to set.public String code()
public ErrorEntity withCode(String code)
code - the code value to set.public String message()
public ErrorEntity withMessage(String message)
message - the message value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.