public class ErrorDTO extends Object
| Constructor and Description |
|---|
ErrorDTO() |
| Modifier and Type | Method and Description |
|---|---|
ErrorDTO |
addErrorItem(ErrorListItemDTO errorItem) |
ErrorDTO |
code(Integer code) |
ErrorDTO |
description(String description) |
boolean |
equals(Object o) |
ErrorDTO |
error(List<ErrorListItemDTO> error) |
Integer |
getCode()
Get code
|
String |
getDescription()
A detail description about the error message.
|
List<ErrorListItemDTO> |
getError()
If there are more than one error list them out.
|
String |
getMessage()
Error message.
|
String |
getMoreInfo()
Preferably an url with more details about the error.
|
int |
hashCode() |
ErrorDTO |
message(String message) |
ErrorDTO |
moreInfo(String moreInfo) |
void |
setCode(Integer code) |
void |
setDescription(String description) |
void |
setError(List<ErrorListItemDTO> error) |
void |
setMessage(String message) |
void |
setMoreInfo(String moreInfo) |
String |
toString() |
public Integer getCode()
public void setCode(Integer 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 ErrorDTO error(List<ErrorListItemDTO> error)
public ErrorDTO addErrorItem(ErrorListItemDTO errorItem)
public List<ErrorListItemDTO> getError()
public void setError(List<ErrorListItemDTO> error)
Copyright © 2018 WSO2. All rights reserved.