01: /*
02: * Copyright 2006 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.module.financial.exceptions;
17:
18: public class CashDrawerStateException extends RuntimeException {
19: private final String verificationUnit;
20: private final String controllingDocumentId;
21: private final String currentDrawerStatus;
22: private final String desiredDrawerStatus;
23:
24: public CashDrawerStateException(String verificationUnit,
25: String controllingDocumentId, String currentDrawerStatus,
26: String desiredDrawerStatus) {
27: this .verificationUnit = verificationUnit;
28: this .controllingDocumentId = controllingDocumentId;
29: this .currentDrawerStatus = currentDrawerStatus;
30: this .desiredDrawerStatus = desiredDrawerStatus;
31: }
32:
33: /**
34: * @return current value of verificationUnit.
35: */
36: public String getVerificationUnit() {
37: return verificationUnit;
38: }
39:
40: /**
41: * @return current value of currentDrawerStatus.
42: */
43: public String getCurrentDrawerStatus() {
44: return currentDrawerStatus;
45: }
46:
47: /**
48: * @return current value of desiredDrawerStatus.
49: */
50: public String getDesiredDrawerStatus() {
51: return desiredDrawerStatus;
52: }
53:
54: /**
55: * @return current value of controllingDocumentId.
56: */
57: public String getControllingDocumentId() {
58: return controllingDocumentId;
59: }
60: }
|