Package org.dspace.app.rest.model
Class ErrorRest
- java.lang.Object
-
- org.dspace.app.rest.model.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 Summary
Constructors Constructor Description ErrorRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMessage()The error message as i18keyList<String>getPaths()The json paths where the error message apply.voidsetMessage(String message)voidsetPaths(List<String> paths)
-
-
-
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:
-
-