001/*
002 * Copyright 2005-2009 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 */
020package org.kuali.ole.module.purap.exception;
021
022import java.io.Serializable;
023import java.util.ArrayList;
024
025public 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
052    public void setMessageKey(String messageKey) {
053        this.messageKey = messageKey;
054    }
055
056    public String getTab() {
057        return tab;
058    }
059
060    public void setTab(String tab) {
061        this.tab = tab;
062    }
063}