source: Ballon/out/artifacts/geisa_artifact/WEB-INF/lib/mysql-connector-java-5.1.21/src/com/mysql/jdbc/exceptions/jdbc4/MySQLTimeoutException.java @ 766

Last change on this file since 766 was 766, checked in by npipsl, 11 years ago
File size: 1.7 KB
Line 
1/*
2 Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.
3 
4
5  The MySQL Connector/J is licensed under the terms of the GPLv2
6  <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most MySQL Connectors.
7  There are special exceptions to the terms and conditions of the GPLv2 as it is applied to
8  this software, see the FLOSS License Exception
9  <http://www.mysql.com/about/legal/licensing/foss-exception.html>.
10
11  This program is free software; you can redistribute it and/or modify it under the terms
12  of the GNU General Public License as published by the Free Software Foundation; version 2
13  of the License.
14
15  This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
16  without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  See the GNU General Public License for more details.
18
19  You should have received a copy of the GNU General Public License along with this
20  program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth
21  Floor, Boston, MA 02110-1301  USA
22
23*/
24
25package com.mysql.jdbc.exceptions.jdbc4;
26
27import java.sql.SQLTimeoutException;
28
29public class MySQLTimeoutException extends SQLTimeoutException {
30
31        public MySQLTimeoutException(String reason, String SQLState, int vendorCode) {
32                super(reason, SQLState, vendorCode);
33        }
34
35        public MySQLTimeoutException(String reason, String SQLState) {
36                super(reason, SQLState);
37        }
38
39        public MySQLTimeoutException(String reason) {
40                super(reason);
41        }
42
43        public MySQLTimeoutException() {
44                super("Statement cancelled due to timeout or client request");
45        }
46
47        public int getErrorCode() {
48                // TODO Auto-generated method stub
49                return super.getErrorCode();
50        }
51}
Note: See TracBrowser for help on using the repository browser.