+++ /dev/null
-package com.indexdata.pz2utils4jsf.errors;\r
-\r
-import java.util.List;\r
-\r
-import com.indexdata.pz2utils4jsf.errors.ErrorHelper.ErrorCode;\r
-import com.indexdata.pz2utils4jsf.pazpar2.data.Pazpar2Error;\r
-\r
-\r
-public class ConfigurationError implements ErrorInterface {\r
-\r
- private static final long serialVersionUID = -6599667223782130838L;\r
- private String label;\r
- private String message;\r
- private String exception;\r
- private ErrorHelper helper;\r
- private ErrorCode applicationErrorCode;\r
- \r
- public ConfigurationError(String label, String exception, String message, ErrorHelper helper) {\r
- this.label = label;\r
- this.message = message;\r
- this.helper = helper; \r
- this.exception = exception;\r
- }\r
- \r
- public List<String> getSuggestions() {\r
- return helper.getSuggestions(this);\r
- }\r
-\r
- @Override\r
- public String getLabel() {\r
- return label;\r
- }\r
-\r
- @Override\r
- public String getMessage() {\r
- return message;\r
- }\r
- \r
- @Override\r
- public String getException() {\r
- return exception;\r
- }\r
- \r
- @Override\r
- public void setErrorHelper (ErrorHelper helper) {\r
- this.helper = helper;\r
- }\r
-\r
- @Override\r
- public void setApplicationErrorCode(ErrorCode code) {\r
- this.applicationErrorCode = code;\r
- }\r
-\r
- @Override\r
- public ErrorCode getApplicationErrorCode() {\r
- return applicationErrorCode;\r
- }\r
- \r
- public boolean hasPazpar2Error () {\r
- return false;\r
- }\r
- \r
- public Pazpar2Error getPazpar2Error() {\r
- return null;\r
- }\r
- \r
-}\r