code: public void open() throws SQLException, ClassNotFoundException {
          logger.info("Using database driver: " + jdbcDriver);
          Class.forName(jdbcDriver);
          logger.info("Using database.url: " + jdbcURL);
          // connect login/pass
          con = DriverManager.getConnection(jdbcURL, user, password);
          // Exception will be thrown if something went wrong
          connected = true;
      }
docs: Open a JDBC connection to the database
  
  @throws java.sql.SQLException If a SQL error occurs
  @throws java.lang.ClassNotFoundException If the driver class does not exists