01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
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.kfs.exceptions;
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.core.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,
36: String errorKey, String... errorParameters) {
37: super (message);
38: this .errorKey = errorKey;
39: this .errorParameters = errorParameters;
40: }
41:
42: /**
43: * Gets the errorKey attribute.
44: *
45: * @return Returns the errorKey.
46: */
47: public String getErrorKey() {
48: return errorKey;
49: }
50:
51: /**
52: * Gets the errorParameters attribute.
53: *
54: * @return Returns the errorParameters.
55: */
56: public String[] getErrorParameters() {
57: return errorParameters;
58: }
59:
60: }
|