public class ErrorEntity extends Object
Constructor and Description |
---|
ErrorEntity() |
Modifier and Type | Method and Description |
---|---|
String |
code()
Get basic error code.
|
String |
extendedCode()
Get type of error.
|
List<ErrorEntity> |
innerErrors()
Get inner errors.
|
String |
message()
Get any details of the error.
|
String |
messageTemplate()
Get message template.
|
List<String> |
parameters()
Get parameters for the template.
|
ErrorEntity |
withCode(String code)
Set basic error code.
|
ErrorEntity |
withExtendedCode(String extendedCode)
Set type of error.
|
ErrorEntity |
withInnerErrors(List<ErrorEntity> innerErrors)
Set inner errors.
|
ErrorEntity |
withMessage(String message)
Set any details of the error.
|
ErrorEntity |
withMessageTemplate(String messageTemplate)
Set message template.
|
ErrorEntity |
withParameters(List<String> parameters)
Set parameters for the template.
|
public String extendedCode()
public ErrorEntity withExtendedCode(String extendedCode)
extendedCode
- the extendedCode value to setpublic String messageTemplate()
public ErrorEntity withMessageTemplate(String messageTemplate)
messageTemplate
- the messageTemplate value to setpublic List<String> parameters()
public ErrorEntity withParameters(List<String> parameters)
parameters
- the parameters value to setpublic List<ErrorEntity> innerErrors()
public ErrorEntity withInnerErrors(List<ErrorEntity> innerErrors)
innerErrors
- the innerErrors value to setpublic String code()
public ErrorEntity withCode(String code)
code
- the code value to setpublic String message()
public ErrorEntity withMessage(String message)
message
- the message value to setCopyright © 2019. All rights reserved.