Package org.dspace.app.rest.model
Class ErrorRest
java.lang.Object
org.dspace.app.rest.model.ErrorRest
Model class to transport error messages and its relative paths
- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe error message as i18keygetPaths()The json paths where the error message apply.voidsetMessage(String message) void
-
Constructor Details
-
ErrorRest
public ErrorRest()
-
-
Method Details
-
getMessage
The error message as i18key- Returns:
- The message as i18key
-
setMessage
-
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
-