Class ErrorDTO


  • public class ErrorDTO
    extends Object
    ErrorDTO
    • Constructor Detail

      • ErrorDTO

        public ErrorDTO()
    • 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)
      • 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object