1 package com.indexdata.pz2utils4jsf.errors;
\r
3 import java.util.List;
\r
5 import com.indexdata.pz2utils4jsf.errors.ErrorHelper.ErrorCode;
\r
6 import com.indexdata.pz2utils4jsf.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, ErrorHelper helper) {
\r
20 this.message = message;
\r
21 this.helper = helper;
\r
22 this.exception = exception;
\r
25 public List<String> getSuggestions() {
\r
26 return helper.getSuggestions(this);
\r
30 public String getLabel() {
\r
35 public String getMessage() {
\r
40 public String getException() {
\r
45 public void setErrorHelper (ErrorHelper helper) {
\r
46 this.helper = helper;
\r
50 public void setApplicationErrorCode(ErrorCode code) {
\r
51 this.applicationErrorCode = code;
\r
55 public ErrorCode getApplicationErrorCode() {
\r
56 return applicationErrorCode;
\r
59 public boolean hasPazpar2Error () {
\r
63 public Pazpar2Error getPazpar2Error() {
\r