01: /*
02: * Copyright 2002 (C) TJDO.
03: * All rights reserved.
04: *
05: * This software is distributed under the terms of the TJDO License version 1.0.
06: * See the terms of the TJDO License in the documentation provided with this software.
07: *
08: * $Id: ClassMetaDataMismatchException.java,v 1.3 2002/11/08 05:06:23 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.model;
12:
13: import javax.jdo.JDOFatalUserException;
14:
15: /**
16: * A <tt>ClassMetaDataMismatchException</tt> is thrown if the names, types, or
17: * flags of the persistent fields of an enhanced class do not match those that
18: * would be expected based on the corresponding JDO metadata.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.3 $
22: *
23: * @see ClassMetaData
24: */
25:
26: public class ClassMetaDataMismatchException extends
27: JDOFatalUserException {
28: /**
29: * Constructs a class metadata mismatch exception with the specified detail message.
30: *
31: * @param clazz The enhanced class whose metadata does not match.
32: * @param msg The detail message
33: */
34:
35: public ClassMetaDataMismatchException(Class clazz, String msg) {
36: super ("Enhanced class " + clazz.getName()
37: + " does not agree with metadata: " + msg);
38: }
39: }
|