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