01: /**********************************************************************
02: Copyright (c) 2004 Andy Jefferson and others. All rights reserved.
03: Licensed under the Apache License, Version 2.0 (the "License");
04: you may not use this file except in compliance with the License.
05: You may obtain a copy of the License at
06:
07: http://www.apache.org/licenses/LICENSE-2.0
08:
09: Unless required by applicable law or agreed to in writing, software
10: distributed under the License is distributed on an "AS IS" BASIS,
11: WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12: See the License for the specific language governing permissions and
13: limitations under the License.
14:
15:
16: Contributors:
17: ...
18: **********************************************************************/package org.jpox.metadata;
19:
20: import org.jpox.util.Localiser;
21:
22: /**
23: * Exception thrown when a primary key class is found to be invalid for some reason.
24: * This is due to an invalid specification of MetaData, or maybe the class specified
25: * is just wrong, but we just throw it as a meta-data issue
26: *
27: * @version $Revision: 1.3 $
28: */
29: public class InvalidPrimaryKeyException extends
30: InvalidMetaDataException {
31: /**
32: * Constructor with message resource, message param
33: * @param localiser message resources
34: * @param key message resources key
35: * @param param1 message resources param0
36: */
37: public InvalidPrimaryKeyException(Localiser localiser, String key,
38: Object param1) {
39: super (localiser, key, param1, "", "");
40: }
41:
42: /**
43: * Constructor with message resource, message params
44: * @param localiser message resources
45: * @param key message resources key
46: * @param param1 message resources param0
47: * @param param2 message resources param1
48: */
49: public InvalidPrimaryKeyException(Localiser localiser, String key,
50: Object param1, Object param2) {
51: super (localiser, key, param1, param2, "");
52: }
53:
54: /**
55: * Constructor with message resource, message params
56: * @param localiser message resources
57: * @param key message resources key
58: * @param param1 message resources param0
59: * @param param2 message resources param1
60: * @param param3 message resources param2
61: */
62: public InvalidPrimaryKeyException(Localiser localiser, String key,
63: Object param1, Object param2, Object param3) {
64: super (localiser, key, param1, param2, param3);
65: this .messageKey = key;
66: }
67:
68: /**
69: * Constructor with message resource, message params
70: * @param localiser message resources
71: * @param key message resources key
72: * @param param1 message resources param1
73: * @param param2 message resources param2
74: * @param param3 message resources param3
75: * @param param4 message resources param4
76: */
77: public InvalidPrimaryKeyException(Localiser localiser, String key,
78: Object param1, Object param2, Object param3, Object param4) {
79: super (localiser, key, param1, param2, param3, param4);
80: this .messageKey = key;
81: }
82:
83: /**
84: * Constructor with message resource, message params
85: * @param localiser message resources
86: * @param key message resources key
87: * @param param1 message resources param1
88: * @param param2 message resources param2
89: * @param param3 message resources param3
90: * @param param4 message resources param4
91: * @param param5 message resources param5
92: */
93: public InvalidPrimaryKeyException(Localiser localiser, String key,
94: Object param1, Object param2, Object param3, Object param4,
95: Object param5) {
96: super(localiser, key, param1, param2, param3, param4, param5);
97: this.messageKey = key;
98: }
99: }
|