com.ibm.jtopenlite.database.jdbc

Class JDBCError

  • java.lang.Object
    • com.ibm.jtopenlite.database.jdbc.JDBCError


  • public class JDBCError
    extends java.lang.Object
    Utility class to report common SQL errors
    • Constructor Summary

      Constructors 
      Constructor and Description
      JDBCError() 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      static java.sql.SQLException getSQLException(java.lang.String sqlState) 
      static java.sql.SQLException getSQLException(java.lang.String sqlState, java.lang.String extra) 
      static void throwSQLException(java.lang.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(java.lang.String sqlState)
                                      throws java.sql.SQLException
        Throws an SQL exception based on an error in the error table.
        Parameters:
        sqlState - The SQL State.
        Throws:
        java.sql.SQLException - Always.
      • getSQLException

        public static java.sql.SQLException getSQLException(java.lang.String sqlState)
      • getSQLException

        public static java.sql.SQLException getSQLException(java.lang.String sqlState,
                                            java.lang.String extra)