01: /**********************************************************************
02: Copyright (c) 2002 Mike Martin 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: Contributors:
16: 2004 Andy Jefferson - coding standards
17: ...
18: **********************************************************************/package org.jpox.store.exceptions;
19:
20: import org.jpox.exceptions.JPOXUserException;
21:
22: /**
23: * A <tt>ColumnDefinitionException</tt> is thrown if the settings of a
24: * database column are incompatible with the data type of the object field
25: * to which it is mapped.
26: *
27: * @see org.jpox.store.DatastoreField
28: * @version $Revision: 1.2 $
29: */
30: public class DatastoreFieldDefinitionException extends
31: JPOXUserException {
32: /**
33: * Constructs a column definition exception with no specific detail
34: * message.
35: */
36: public DatastoreFieldDefinitionException() {
37: super ();
38: setFatal();
39: }
40:
41: /**
42: * Constructs a column definition exception with the specified detail
43: * message.
44: * @param msg the detail message
45: */
46: public DatastoreFieldDefinitionException(String msg) {
47: super(msg);
48: setFatal();
49: }
50: }
|