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: NoExtentException.java,v 1.3 2002/11/08 05:06:25 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import javax.jdo.JDOUserException;
14:
15: /**
16: * A <tt>NoExtentException</tt> is thrown if an attempt is made to perform an
17: * operation using a class that is not backed by an extent (ie table or view)
18: * in the database and the operation is not supported on such classes.
19: *
20: * @author <a href="mailto:mmartin5@austin.rr.com">Mike Martin</a>
21: * @version $Revision: 1.3 $
22: *
23: * @see StoreManager
24: */
25:
26: public class NoExtentException extends JDOUserException {
27: /**
28: * Constructs a no extent exception.
29: *
30: * @param clazz The class on which the operation requiring an extent
31: * was attempted.
32: */
33:
34: public NoExtentException(Class clazz) {
35: super (
36: "Persistent class has no extent (i.e. table) in the database: "
37: + clazz.getName());
38: }
39: }
|