Class ErrorDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.gateway.api.v2.dto.ErrorDTO
-
public class ErrorDTO extends Object
ErrorDTO
-
-
Constructor Summary
Constructors Constructor Description ErrorDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorDTOaddErrorItem(ErrorListItemDTO errorItem)ErrorDTOcode(Long code)ErrorDTOdescription(String description)booleanequals(Object o)ErrorDTOerror(List<ErrorListItemDTO> error)LonggetCode()Error codeStringgetDescription()A detail description about the error message.List<ErrorListItemDTO>getError()If there are more than one error list them out.StringgetMessage()Error message.StringgetMoreInfo()Preferably an url with more details about the error.inthashCode()ErrorDTOmessage(String message)ErrorDTOmoreInfo(String moreInfo)voidsetCode(Long code)voidsetDescription(String description)voidsetError(List<ErrorListItemDTO> error)voidsetMessage(String message)voidsetMoreInfo(String moreInfo)StringtoString()
-
-
-
Method Detail
-
getCode
public Long getCode()
Error code- Returns:
- code
-
setCode
public void setCode(Long code)
-
getMessage
public String getMessage()
Error message.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
getDescription
public String getDescription()
A detail description about the error message.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getMoreInfo
public String getMoreInfo()
Preferably an url with more details about the error.- Returns:
- moreInfo
-
setMoreInfo
public void setMoreInfo(String moreInfo)
-
error
public ErrorDTO error(List<ErrorListItemDTO> error)
-
addErrorItem
public ErrorDTO addErrorItem(ErrorListItemDTO errorItem)
-
getError
public List<ErrorListItemDTO> getError()
If there are more than one error list them out. For example, list out validation errors by each field.- Returns:
- error
-
setError
public void setError(List<ErrorListItemDTO> error)
-
-