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