1 package org.apache.ojb.broker; 2 3 17 18 import java.sql.SQLException ; 19 20 26 public class PersistenceBrokerSQLException extends PersistenceBrokerException 27 { 28 private String sqlState = null; 29 30 33 public PersistenceBrokerSQLException() 34 { 35 super(); 36 } 37 38 43 public PersistenceBrokerSQLException(SQLException cause) 44 { 45 super(cause); 46 sqlState = cause.getSQLState(); 47 } 48 49 54 public PersistenceBrokerSQLException(String msg) 55 { 56 super(msg); 57 } 58 59 65 public PersistenceBrokerSQLException(String msg, SQLException cause) 66 { 67 super(msg, cause); 68 sqlState = cause.getSQLState(); 69 } 70 71 76 public String getSQLState() 77 { 78 return sqlState; 79 } 80 } 81 | Popular Tags |