01: /*
02: * Copyright 2004 (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: ClassNotPersistenceCapableException.java,v 1.5 2004/01/18 03:01:05 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo;
12:
13: import javax.jdo.JDOUserException;
14:
15: /**
16: * An <tt>ClassNotPersistenceCapableException</tt> is thrown if an attempt is
17: * made to persist or otherwise manage an object whose class is not persistence-
18: * capable.
19: * This may be because the class has not been appropriately enhanced or because
20: * the class metadata is not accessible.
21: *
22: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
23: * @version $Revision: 1.5 $
24: */
25:
26: public class ClassNotPersistenceCapableException extends
27: JDOUserException {
28: /**
29: * Constructs a class-not-persistence-capable exception with the specified
30: * detail message.
31: *
32: * @param c The class that is not PersistenceCapable.
33: */
34:
35: public ClassNotPersistenceCapableException(Class c) {
36: super(c.getName());
37: }
38: }
|