com.ibm.jtopenlite.database.jdbc
Class JDBCError

java.lang.Object
  extended by com.ibm.jtopenlite.database.jdbc.JDBCError

public class JDBCError
extends Object

Utility class to report common SQL errors


Constructor Summary
JDBCError()
           
 
Method Summary
static SQLException getSQLException(String sqlState)
           
static SQLException getSQLException(String sqlState, String extra)
           
static void throwSQLException(String sqlState)
          Throws an SQL exception based on an error in the error table.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JDBCError

public JDBCError()
Method Detail

throwSQLException

public static void throwSQLException(String sqlState)
                              throws SQLException
Throws an SQL exception based on an error in the error table.

Parameters:
sqlState - The SQL State.
Throws:
SQLException - Always.

getSQLException

public static SQLException getSQLException(String sqlState)

getSQLException

public static SQLException getSQLException(String sqlState,
                                           String extra)