001    /*
002     * Copyright 2011 The Kuali Foundation.
003     * 
004     * Licensed under the Educational Community License, Version 2.0 (the "License");
005     * you may not use this file except in compliance with the License.
006     * You may obtain a copy of the License at
007     * 
008     * http://www.opensource.org/licenses/ecl2.php
009     * 
010     * Unless required by applicable law or agreed to in writing, software
011     * distributed under the License is distributed on an "AS IS" BASIS,
012     * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013     * See the License for the specific language governing permissions and
014     * limitations under the License.
015     */
016    /*
017     * Created on Jan 24, 2005
018     *
019     */
020    package org.kuali.kfs.module.purap.exception;
021    
022    import java.io.Serializable;
023    import java.util.ArrayList;
024    
025    public class ServiceError implements Serializable {
026      private String tab;
027      private String messageKey;
028      private ArrayList parameters = new ArrayList();
029    
030      public ServiceError() {
031        super();
032      }
033    
034      public ServiceError(String tab,String messageKey) {
035        super();
036        this.tab = tab;
037        this.messageKey = messageKey;
038      }
039      
040      public void addParameter(String param) {
041        parameters.add(param);
042      }
043    
044      public Object[] getParameters() {
045        return parameters.toArray();
046      }
047      
048      public String getMessageKey() {
049        return messageKey;
050      }
051      public void setMessageKey(String messageKey) {
052        this.messageKey = messageKey;
053      }
054    
055      public String getTab() {
056        return tab;
057      }
058      public void setTab(String tab) {
059        this.tab = tab;
060      }
061    }