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: ConnectionInUseException.java,v 1.3 2002/11/08 05:06:22 jackknifebarber Exp $ 9 */ 10 11 package com.triactive.jdo; 12 13 import javax.jdo.JDOUserException; 14 15 16 /** 17 * An <tt>ConnectionInUseException</tt> is thrown if an operation is attempted 18 * that requires a new database connection (such as Transaction.begin()) and a 19 * previously obtained database connection (such as for non-transactional read 20 * or write) is still in-use. 21 * 22 * @author <a HREF="mailto:mmartin5@austin.rr.com">Mike Martin</a> 23 * @version $Revision: 1.3 $ 24 * 25 * @see NonmanagedTransaction 26 */ 27 28 public class ConnectionInUseException extends JDOUserException 29 { 30 /** 31 * Constructs a connection-in-use exception. 32 */ 33 34 public ConnectionInUseException() 35 { 36 super("A database connection is already in-use: perhaps a Query was not closed?"); 37 } 38 } 39