code: private static void handleSQLException(SQLException e, String poolName, String sql) {
  
      YankSQLException yankSQLException = new YankSQLException(e, poolName, sql);
  
      if (throwWrappedExceptions) {
        throw yankSQLException;
      } else {
        logger.error(yankSQLException.getMessage(), yankSQLException);
      }
    }
docs: Handles exceptions and logs them
  
  @param e the SQLException