1 package com.sri.emo.commandline.defaults;
2
3 import com.jcorporate.expresso.core.db.DBException;
4 import com.sri.emo.dbobj.WizDefinition;
5
6 public class IncompleteDecisionMatrixException extends Exception {
7
8 /***
9 * Serial UID.
10 */
11 private static final long serialVersionUID = 1L;
12
13 private WizDefinition wizard;
14
15
16 public IncompleteDecisionMatrixException(WizDefinition wizard) {
17 super();
18 this.wizard = wizard;
19 }
20
21 public String getMessage() {
22 StringBuffer message = new StringBuffer();
23 try {
24 message.append("Wizard ID " + wizard.getId() + " ( " + wizard.getWizName() + " )" +
25 " is not being exported because it has an incomplete decision matrix.");
26 } catch (DBException e) {
27 message.append("Skipping a wizard due to incomplete decision matrix, but we are unable " +
28 " to get its id " + wizard + " due to error: " + e.getMessage());
29 }
30
31
32 return message.toString();
33 }
34
35
36
37 }