Class ErrorDTO
- java.lang.Object
-
- org.wso2.carbon.apimgt.rest.api.devops.dto.ErrorDTO
-
public class ErrorDTO extends Object
-
-
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)A detail description about the error message.booleanequals(Object o)ErrorDTOerror(List<ErrorListItemDTO> error)If there are more than one error list them out.@NotNull LonggetCode()StringgetDescription()@Valid List<ErrorListItemDTO>getError()@NotNull StringgetMessage()StringgetMoreInfo()inthashCode()ErrorDTOmessage(String message)Error message.ErrorDTOmoreInfo(String moreInfo)Preferably an url with more details about the error.voidsetCode(Long code)voidsetDescription(String description)voidsetError(List<ErrorListItemDTO> error)voidsetMessage(String message)voidsetMoreInfo(String moreInfo)StringtoString()
-
-
-
Method Detail
-
getCode
@NotNull public @NotNull Long getCode()
-
setCode
public void setCode(Long code)
-
getMessage
@NotNull public @NotNull String getMessage()
-
setMessage
public void setMessage(String message)
-
description
public ErrorDTO description(String description)
A detail description about the error message.
-
getDescription
public String getDescription()
-
setDescription
public void setDescription(String description)
-
moreInfo
public ErrorDTO moreInfo(String moreInfo)
Preferably an url with more details about the error.
-
getMoreInfo
public String getMoreInfo()
-
setMoreInfo
public void setMoreInfo(String moreInfo)
-
error
public ErrorDTO error(List<ErrorListItemDTO> error)
If there are more than one error list them out. For example, list out validation errors by each field.
-
getError
@Valid public @Valid List<ErrorListItemDTO> getError()
-
setError
public void setError(List<ErrorListItemDTO> error)
-
-