1 5 package com.teamkonzept.db; 6 7 import java.sql.*; 8 9 public class TKSQLError extends Error 10 { 11 private SQLException sqlException; 12 13 18 public TKSQLError (String s) { 19 super(s); 20 } 21 22 public TKSQLError(String 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 |