KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > teamkonzept > db > TKSQLError


1 /*
2  * $Header: /cvsroot/webman-cms/source/webman/com/teamkonzept/db/TKSQLError.java,v 1.10 2000/07/05 15:36:26 alex Exp $
3  *
4  */

5 package com.teamkonzept.db;
6
7 import java.sql.*;
8
9 public class TKSQLError extends Error JavaDoc
10 {
11     private SQLException sqlException;
12     
13     /**
14         Sollte nicht mehr benutzt werden, da er keine semantische Einordnung
15         erlaubt
16         @deprecated
17     */

18     public TKSQLError (String JavaDoc s) {
19         super(s);
20     }
21     
22     public TKSQLError(String JavaDoc message, SQLException e)
23     {
24         super(message);
25         sqlException = e;
26     }
27     
28     public TKSQLError(SQLException e)
29     {
30         super(e.getMessage());
31         sqlException = e;
32     }
33     
34     public SQLException getSQLException()
35     {
36         return sqlException;
37     }
38 }
39
40
Popular Tags