KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > model > ClassMetaDataMismatchException


1 /*
2  * Copyright 2002 (C) TJDO.
3  * All rights reserved.
4  *
5  * This software is distributed under the terms of the TJDO License version 1.0.
6  * See the terms of the TJDO License in the documentation provided with this software.
7  *
8  * $Id: ClassMetaDataMismatchException.java,v 1.3 2002/11/08 05:06:23 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo.model;
12
13 import javax.jdo.JDOFatalUserException;
14
15
16 /**
17  * A <tt>ClassMetaDataMismatchException</tt> is thrown if the names, types, or
18  * flags of the persistent fields of an enhanced class do not match those that
19  * would be expected based on the corresponding JDO metadata.
20  *
21  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
22  * @version $Revision: 1.3 $
23  *
24  * @see ClassMetaData
25  */

26
27 public class ClassMetaDataMismatchException extends JDOFatalUserException
28 {
29     /**
30      * Constructs a class metadata mismatch exception with the specified detail message.
31      *
32      * @param clazz The enhanced class whose metadata does not match.
33      * @param msg The detail message
34      */

35
36     public ClassMetaDataMismatchException(Class JavaDoc clazz, String JavaDoc msg)
37     {
38         super("Enhanced class " + clazz.getName() + " does not agree with metadata: " + msg);
39     }
40 }
41
Popular Tags