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: ViewNotSupportedException.java,v 1.3 2002/11/08 05:06:26 jackknifebarber Exp $
09: */
10:
11: package com.triactive.jdo.store;
12:
13: import javax.jdo.JDOUserException;
14:
15: /**
16: * A <tt>ViewNotSupportedException</tt> is thrown if an attempt is made to
17: * perform an operation using a class that is backed by a view and the operation
18: * 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 ViewNotSupportedException extends JDOUserException {
27: /**
28: * Constructs a view not supported exception.
29: *
30: * @param clazz The class backed by a view.
31: */
32:
33: public ViewNotSupportedException(Class clazz) {
34: super (
35: "This operation cannot be performed on a class that is backed by a view: class = "
36: + clazz.getName());
37: }
38: }
|