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: Andy Jefferson - coding standards
17: ...
18: **********************************************************************/package org.jpox.store.exceptions;
19:
20: import org.jpox.exceptions.JPOXDataStoreException;
21:
22: /**
23: * A <tt>UnsupportedDataTypeException</tt> is thrown if an attempt is made
24: * to persist an object field whose data type is not supported by the database
25: * and/or the persistence package.
26: *
27: * @version $Revision: 1.4 $
28: */
29: public class UnsupportedDataTypeException extends
30: JPOXDataStoreException {
31: /**
32: * Constructs an unsupported data type exception with no specific detail
33: * message.
34: */
35: public UnsupportedDataTypeException() {
36: super ();
37: setFatal();
38: }
39:
40: /**
41: * Constructs an unsupported data type exception with the specified detail
42: * message.
43: *
44: * @param msg the detail message
45: */
46: public UnsupportedDataTypeException(String msg) {
47: super (msg);
48: setFatal();
49: }
50:
51: /**
52: * Constructs an unsupported data type exception with the specified detail
53: * message and nested exception.
54: *
55: * @param msg the detail message
56: * @param nested the nested exception(s).
57: */
58: public UnsupportedDataTypeException(String msg, Exception nested) {
59: super(msg, nested);
60: setFatal();
61: }
62: }
|