Documentation of 'org.apache.derby.impl.jdbc.SQLExceptionFactory' Java class
SQLExceptionFactory
org.apache.derby.impl.jdbc

Class SQLExceptionFactory



  • public class SQLExceptionFactory
    extends ExceptionFactory
    Class to create SQLException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.sql.SQLException getSQLException(java.lang.String messageId, java.sql.SQLException next, java.lang.Throwable cause, java.lang.Object... args)
      Construct an SQLException whose message and severity are derived from the message id.
      java.sql.SQLException getSQLException(java.lang.String message, java.lang.String messageId, java.sql.SQLException next, int severity, java.lang.Throwable t, java.lang.Object... args)
      method to construct SQLException version specific drivers can overload this method to create version specific exceptions
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SQLExceptionFactory

        public SQLExceptionFactory()
    • Method Detail

      • getSQLException

        public java.sql.SQLException getSQLException(java.lang.String message,
                                                     java.lang.String messageId,
                                                     java.sql.SQLException next,
                                                     int severity,
                                                     java.lang.Throwable t,
                                                     java.lang.Object... args)

        method to construct SQLException version specific drivers can overload this method to create version specific exceptions

        This implementation creates JDBC 4 exceptions.

         SQLSTATE CLASS (prefix)     Exception
         0A                          java.sql.SQLFeatureNotSupportedException
         08                          java.sql.SQLNonTransientConnectionException
         22                          java.sql.SQLDataException
         28                          java.sql.SQLInvalidAuthorizationSpecException
         40                          java.sql.SQLTransactionRollbackException
         42                          java.sql.SQLSyntaxErrorException
         
        Specified by:
        getSQLException in class ExceptionFactory
        Parameters:
        message - the exception message
        messageId - the message id
        next - the next SQLException
        severity - the severity of the exception
        t - the cause of the exception
        args - the message arguments
        Returns:
        an SQLException
      • getSQLException

        public final java.sql.SQLException getSQLException(java.lang.String messageId,
                                                           java.sql.SQLException next,
                                                           java.lang.Throwable cause,
                                                           java.lang.Object... args)
        Construct an SQLException whose message and severity are derived from the message id.
        Specified by:
        getSQLException in class ExceptionFactory
        Parameters:
        messageId - the message id
        next - the next SQLException
        cause - the cause of the exception
        args - the message arguments
        Returns:
        an SQLException

DataMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.