public class ErrorDTO extends Object
| Constructor and Description |
|---|
ErrorDTO() |
| Modifier and Type | Method and Description |
|---|---|
Long |
getCode()
Error code
|
String |
getDescription()
A detail description about the error message.\n
|
List<ErrorListItemDTO> |
getError()
If there are more than one error list them out.\nFor example, list out validation errors by each field.\n
|
String |
getMessage()
Error message.
|
String |
getMoreInfo()
Preferably an url with more details about the error.\n
|
void |
setCode(Long code) |
void |
setDescription(String description) |
void |
setError(List<ErrorListItemDTO> error) |
void |
setMessage(String message) |
void |
setMoreInfo(String moreInfo) |
String |
toString() |
public Long getCode()
public void setCode(Long code)
public String getMessage()
public void setMessage(String message)
public String getDescription()
public void setDescription(String description)
public String getMoreInfo()
public void setMoreInfo(String moreInfo)
public List<ErrorListItemDTO> getError()
public void setError(List<ErrorListItemDTO> error)
Copyright © 2019 WSO2. All rights reserved.