to.etc.dbpool
Class BetterSQLException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.sql.SQLException
              extended by to.etc.dbpool.BetterSQLException
All Implemented Interfaces:
java.io.Serializable, java.lang.Iterable<java.lang.Throwable>

public class BetterSQLException
extends java.sql.SQLException

Created on Jul 8, 2003

Author:
jal
See Also:
Serialized Form

Constructor Summary
BetterSQLException(java.lang.String sql, java.lang.Object[] par, int ct, java.sql.SQLException rootcause)
           
BetterSQLException(java.lang.String sql, java.sql.SQLException rootcause)
           
 
Method Summary
static java.lang.String format(java.lang.Object[] par, int ct)
           
 int getErrorCode()
           
 java.lang.String getSQLState()
           
 
Methods inherited from class java.sql.SQLException
getNextException, iterator, setNextException
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

BetterSQLException

public BetterSQLException(java.lang.String sql,
                          java.sql.SQLException rootcause)

BetterSQLException

public BetterSQLException(java.lang.String sql,
                          java.lang.Object[] par,
                          int ct,
                          java.sql.SQLException rootcause)
Method Detail

getErrorCode

public int getErrorCode()
Overrides:
getErrorCode in class java.sql.SQLException

getSQLState

public java.lang.String getSQLState()
Overrides:
getSQLState in class java.sql.SQLException

format

public static java.lang.String format(java.lang.Object[] par,
                                      int ct)