Class ErrorDTO
- java.lang.Object
-
- org.wso2.am.integration.clients.store.api.v1.dto.ErrorDTO
-
public class ErrorDTO extends Object
ErrorDTO
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERIALIZED_NAME_CODEstatic StringSERIALIZED_NAME_DESCRIPTIONstatic StringSERIALIZED_NAME_ERRORstatic StringSERIALIZED_NAME_MESSAGEstatic StringSERIALIZED_NAME_MORE_INFO
-
Constructor Summary
Constructors Constructor Description ErrorDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ErrorDTOcode(Long code)ErrorDTOdescription(String description)booleanequals(Object o)ErrorDTOerror(List<ErrorListItemDTO> error)LonggetCode()Get 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()
-
-
-
Field Detail
-
SERIALIZED_NAME_CODE
public static final String SERIALIZED_NAME_CODE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MESSAGE
public static final String SERIALIZED_NAME_MESSAGE
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_DESCRIPTION
public static final String SERIALIZED_NAME_DESCRIPTION
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_MORE_INFO
public static final String SERIALIZED_NAME_MORE_INFO
- See Also:
- Constant Field Values
-
SERIALIZED_NAME_ERROR
public static final String SERIALIZED_NAME_ERROR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCode
public Long getCode()
Get code- Returns:
- code
-
setCode
public void setCode(Long code)
-
getMessage
public String getMessage()
Error message.- Returns:
- message
-
setMessage
public void setMessage(String message)
-
getDescription
@Nullable public String getDescription()
A detail description about the error message.- Returns:
- description
-
setDescription
public void setDescription(String description)
-
getMoreInfo
@Nullable 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)
-
getError
@Nullable 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)
-
-