View Javadoc
1   /*
2    * Copyright 2005-2009 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    * http://www.opensource.org/licenses/ecl2.php
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  /*
17   * Created on Jan 24, 2005
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  }