Classes in this File | Line Coverage | Branch Coverage | Complexity | |||||||
JDBCAdaptorException |
|
| 1.0;1 |
1 | /* |
|
2 | Wotonomy: OpenStep design patterns for pure Java applications. |
|
3 | Copyright (C) 2001 Michael Powers |
|
4 | ||
5 | This library is free software; you can redistribute it and/or |
|
6 | modify it under the terms of the GNU Lesser General Public |
|
7 | License as published by the Free Software Foundation; either |
|
8 | version 2.1 of the License, or (at your option) any later version. |
|
9 | ||
10 | This library is distributed in the hope that it will be useful, |
|
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
|
13 | Lesser General Public License for more details. |
|
14 | ||
15 | You should have received a copy of the GNU Lesser General Public |
|
16 | License along with this library; if not, see http://www.gnu.org |
|
17 | */package net.wotonomy.jdbcadaptor; |
|
18 | ||
19 | import java.sql.SQLException; |
|
20 | ||
21 | import net.wotonomy.access.EOGeneralAdaptorException; |
|
22 | ||
23 | /** |
|
24 | * Concrete implementation of EOSQLExpression for use with JDBC. |
|
25 | * |
|
26 | * @author ezamudio@nasoft.com |
|
27 | * @author $Author: cgruber $ |
|
28 | * @version $Revision: 903 $ |
|
29 | */ |
|
30 | public class JDBCAdaptorException extends EOGeneralAdaptorException { |
|
31 | ||
32 | protected SQLException _sqlException; |
|
33 | ||
34 | /** |
|
35 | * @param msg The message for the exception |
|
36 | * @sqlex The original SQLException |
|
37 | */ |
|
38 | public JDBCAdaptorException(String msg, SQLException sqlex) { |
|
39 | 0 | super(msg); |
40 | 0 | _sqlException = sqlex; |
41 | 0 | } |
42 | ||
43 | /** |
|
44 | * @param name |
|
45 | * @param userInfo |
|
46 | */ |
|
47 | public JDBCAdaptorException(SQLException sqlex) { |
|
48 | 0 | super(sqlex.getMessage()); |
49 | 0 | _sqlException = sqlex; |
50 | 0 | } |
51 | ||
52 | public SQLException sqlException() { |
|
53 | 0 | return _sqlException; |
54 | } |
|
55 | ||
56 | } |
|
57 | /* |
|
58 | * $Log$ |
|
59 | * Revision 1.2 2006/02/18 22:59:22 cgruber |
|
60 | * make it compile with maven dependencies and add a cvsignore. |
|
61 | * |
|
62 | * Revision 1.1 2006/02/16 13:22:23 cgruber |
|
63 | * Check in all sources in eclipse-friendly maven-enabled packages. |
|
64 | * |
|
65 | * Revision 1.2 2003/08/13 20:11:30 chochos |
|
66 | * forgot to add the wotonomy disclaimer... |
|
67 | * |
|
68 | */ |