1 /*
2 * Copyright 2007 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 package org.kuali.ole.sys.exception;
17
18 /**
19 * this class represents an exception that is thrown when a piece of the <code>AccountingLineParser</code> fails
20 *
21 * @see org.kuali.rice.krad.bo.AccountingLineParser
22 */
23 public class AccountingLineParserException extends RuntimeException {
24
25 private String errorKey;
26 private String[] errorParameters;
27
28 /**
29 * Constructs a AccountingLineParserException.java.
30 *
31 * @param message
32 * @param errorKey key to an error message
33 * @param errorParameters error message parameters
34 */
35 public AccountingLineParserException(String message, String errorKey, String... errorParameters) {
36 super(message);
37 this.errorKey = errorKey;
38 this.errorParameters = errorParameters;
39 }
40
41 /**
42 * Gets the errorKey attribute.
43 *
44 * @return Returns the errorKey.
45 */
46 public String getErrorKey() {
47 return errorKey;
48 }
49
50 /**
51 * Gets the errorParameters attribute.
52 *
53 * @return Returns the errorParameters.
54 */
55 public String[] getErrorParameters() {
56 return errorParameters;
57 }
58
59
60 }