Class ErrorRest


  • public class ErrorRest
    extends Object
    Model class to transport error messages and its relative paths
    Author:
    Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
    • Constructor Detail

      • ErrorRest

        public ErrorRest()
    • Method Detail

      • getMessage

        public String getMessage()
        The error message as i18key
        Returns:
        The message as i18key
      • setMessage

        public void setMessage​(String message)
      • getPaths

        public List<String> getPaths()
        The json paths where the error message apply. They can be as detailed as a specific value in a multivalues attributes (i.e. sections.traditionalpageone['dc.contributor.author'][1] to identify the second author - 0 based) or generic to apply to a whole section (sections.license)
        Returns:
      • setPaths

        public void setPaths​(List<String> paths)