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 package org.kuali.kfs.module.endow.exception; 017 018 public class EndowmentAccountingLineException extends RuntimeException { 019 020 private String errorKey; 021 private String[] errorParameters; 022 023 /** 024 * Constructs an EndowmentAccountingLineException. 025 * 026 * @param message 027 * @param errorKey key to an error message 028 * @param errorParameters error message parameters 029 */ 030 public EndowmentAccountingLineException(String message, String errorKey, String... errorParameters) { 031 super(message); 032 this.errorKey = errorKey; 033 this.errorParameters = errorParameters; 034 } 035 036 /** 037 * Gets the errorKey attribute. 038 * 039 * @return Returns the errorKey. 040 */ 041 public String getErrorKey() { 042 return errorKey; 043 } 044 045 /** 046 * Gets the errorParameters attribute. 047 * 048 * @return Returns the errorParameters. 049 */ 050 public String[] getErrorParameters() { 051 return errorParameters; 052 } 053 054 }