Class JdbcConnectionException

    • Field Detail

      • sqlState

        private final String sqlState
      • errorCode

        private final int errorCode
    • Constructor Detail

      • JdbcConnectionException

        public JdbcConnectionException​(SQLException e)
        Creates a new exception instance, wrapping the supplied SQLException
        Parameters:
        e - a SQLException instance, may not be null
      • JdbcConnectionException

        public JdbcConnectionException​(String message,
                                       SQLException e)
        Creates a new exception instance, wrapping the supplied SQLException with a custom message
        Parameters:
        message - the exception message, may not be null
        e - a SQLException instance, may not be null
    • Method Detail

      • getSqlState

        public String getSqlState()
        Returns the SQL state from the original exception
        Returns:
        the SQL state string
        See Also:
        SQLException.getSQLState()
      • getErrorCode

        public int getErrorCode()
        Returns the SQL error code from the original exception
        Returns:
        the SQL error code
        See Also:
        SQLException.getErrorCode()