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: PersistentSuperclassNotAllowedException.java,v 1.3 2002/11/08 05:06:25 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: /**
14: * A <tt>PersistentSuperclassNotAllowedException</tt> is thrown if a
15: * persistence-capable class is declared to have a persistence-capable
16: * superclass when that class is backed by a view.
17: *
18: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
19: * @version $Revision: 1.3 $
20: *
21: * @see ClassView
22: */
23:
24: public class PersistentSuperclassNotAllowedException extends
25: ClassDefinitionException {
26: /**
27: * Constructs a persistent-superclass-not-allowed exception.
28: *
29: * @param clazz The class having the persistence-capable superclass.
30: */
31:
32: public PersistentSuperclassNotAllowedException(Class clazz) {
33: super (
34: "Classes backed by views cannot have persistence-capable superclasses: "
35: + clazz.getName());
36: }
37: }
|