public class ErrorDTO extends Object
| Constructor and Description |
|---|
ErrorDTO() |
| Modifier and Type | Method and Description |
|---|---|
ErrorDTO |
addErrorItem(ErrorListItemDTO errorItem) |
ErrorDTO |
code(Long code) |
ErrorDTO |
description(String description) |
boolean |
equals(Object o) |
ErrorDTO |
error(List<ErrorListItemDTO> error) |
Long |
getCode()
Error 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(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 ErrorDTO error(List<ErrorListItemDTO> error)
public ErrorDTO addErrorItem(ErrorListItemDTO errorItem)
public List<ErrorListItemDTO> getError()
public void setError(List<ErrorListItemDTO> error)
Copyright © 2021 WSO2 Inc. All rights reserved.