1 package com.indexdata.mkjsf.errors;
\r
3 import java.util.List;
\r
5 import com.indexdata.mkjsf.errors.ErrorHelper.ErrorCode;
\r
6 import com.indexdata.mkjsf.pazpar2.data.Pazpar2Error;
\r
9 public class ConfigurationError implements ErrorInterface {
\r
11 private static final long serialVersionUID = -6599667223782130838L;
\r
12 private String label;
\r
13 private String message;
\r
14 private String exception;
\r
15 private ErrorHelper helper;
\r
16 private ErrorCode applicationErrorCode;
\r
18 public ConfigurationError(String label, String exception, String message) {
\r
20 this.message = message;
\r
21 this.exception = exception;
\r
24 public List<String> getSuggestions() {
\r
25 return helper.getSuggestions(this);
\r
29 public String getLabel() {
\r
34 public String getMessage() {
\r
39 public String getException() {
\r
44 public void setErrorHelper (ErrorHelper helper) {
\r
45 this.helper = helper;
\r
49 public void setApplicationErrorCode(ErrorCode code) {
\r
50 this.applicationErrorCode = code;
\r
54 public ErrorCode getApplicationErrorCode() {
\r
55 return applicationErrorCode;
\r
58 public boolean hasPazpar2Error () {
\r
62 public Pazpar2Error getPazpar2Error() {
\r