Class ErrorDTO


  • public class ErrorDTO
    extends Object
    • Constructor Detail

      • ErrorDTO

        public ErrorDTO()
    • Method Detail

      • getCode

        @NotNull
        public @NotNull Long getCode()
      • setCode

        public void setCode​(Long code)
      • message

        public ErrorDTO message​(String message)
        Error message.
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object