1 /*
2 * ConnectionLostException.java
3 *
4 * This file is part of the creme library.
5 * The creme library intends to ease the development effort of large
6 * applications by providing easy to use support classes.
7 *
8 * Copyright (C) 2002 Denis Bregeon
9 *
10 *
11 * This library is free software; you can redistribute it and/or
12 * modify it under the terms of the GNU Lesser General Public
13 * License as published by the Free Software Foundation; either
14 * version 2.1 of the License, or (at your option) any later version.
15 *
16 * This library is distributed in the hope that it will be useful,
17 * but WITHOUT ANY WARRANTY; without even the implied warranty of
18 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19 * Lesser General Public License for more details.
20 *
21 * You should have received a copy of the GNU Lesser General Public
22 * License along with this library; if not, write to the Free Software
23 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
24 *
25 * contact information: dbregeon@sourceforge.net
26 */
27
28 package org.jcreme.sql;
29
30 import java.sql.SQLException;
31
32 /***
33 * This class enables to precise the nature of an SQLException. When a loss of
34 * connection is detected, this class enables to report it and eventually handle
35 * it.
36 *
37 * @author $Author: dbregeon $
38 * @version $Revision: 1.1 $
39 */
40 public class ConnectionLostException extends SQLException {
41 /***
42 * Creates a new ConnectionLostException.
43 *
44 * @param reason
45 * a description of the exception.
46 * @param sqlState
47 * an XOPEN or SQL 99 code identifying the exception
48 * @param vendorCode
49 * a database vendor-specific exception code
50 */
51 public ConnectionLostException(String reason, String sqlState,
52 int vendorCode) {
53 super(reason, sqlState, vendorCode);
54 }
55
56 /***
57 * Constructs an instance of ConnectionLostException with the specified
58 * detail message.
59 *
60 * @param msg
61 * the detail message.
62 */
63 public ConnectionLostException(String msg) {
64 super(msg);
65 }
66 }