1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20 package org.kuali.ole.module.purap.exception;
21
22 import java.io.Serializable;
23 import java.util.ArrayList;
24
25 public class ServiceError implements Serializable {
26 private String tab;
27 private String messageKey;
28 private ArrayList parameters = new ArrayList();
29
30 public ServiceError() {
31 super();
32 }
33
34 public ServiceError(String tab, String messageKey) {
35 super();
36 this.tab = tab;
37 this.messageKey = messageKey;
38 }
39
40 public void addParameter(String param) {
41 parameters.add(param);
42 }
43
44 public Object[] getParameters() {
45 return parameters.toArray();
46 }
47
48 public String getMessageKey() {
49 return messageKey;
50 }
51
52 public void setMessageKey(String messageKey) {
53 this.messageKey = messageKey;
54 }
55
56 public String getTab() {
57 return tab;
58 }
59
60 public void setTab(String tab) {
61 this.tab = tab;
62 }
63 }