KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > triactive > jdo > ClassNotPersistenceCapableException


1 /*
2  * Copyright 2004 (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: ClassNotPersistenceCapableException.java,v 1.5 2004/01/18 03:01:05 jackknifebarber Exp $
9  */

10
11 package com.triactive.jdo;
12
13 import javax.jdo.JDOUserException;
14
15
16 /**
17  * An <tt>ClassNotPersistenceCapableException</tt> is thrown if an attempt is
18  * made to persist or otherwise manage an object whose class is not persistence-
19  * capable.
20  * This may be because the class has not been appropriately enhanced or because
21  * the class metadata is not accessible.
22  *
23  * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a>
24  * @version $Revision: 1.5 $
25  */

26
27 public class ClassNotPersistenceCapableException extends JDOUserException
28 {
29     /**
30      * Constructs a class-not-persistence-capable exception with the specified
31      * detail message.
32      *
33      * @param c The class that is not PersistenceCapable.
34      */

35
36     public ClassNotPersistenceCapableException(Class JavaDoc c)
37     {
38         super(c.getName());
39     }
40 }
41
Popular Tags