title: Using same catch block for multiple then methods
body: <p>Given:</p>
  
  <ul>
  <li>NodeJS v0.10.25</li>
  <li>All Harmony features enabled</li>
  <li><code>"use strict"</code></li>
  </ul>
  
  <p>And the following code:</p>
  
  <pre><code>   db.connect({
        host: DB_HOST,
        port: DB_PORT
      }).then(function(dbConn) {
        console.log('DBASE connected to ' + DB_HOST + ':' + DB_PORT);
        db.dbList().run(dbConn).then(function(result) {
          if (result.indexOf(SCRIPT_NAME) == -1) throw new Error('unable to locate database ' + SCRIPT_NAME);
          dbConn.use(SCRIPT_NAME);
          console.log('DBASE bound to ' + SCRIPT_NAME + ' on ' + DB_HOST + ':' + DB_PORT);
          db.tableList().run(dbConn)
            .then(function(result) {
              if (!result) throw new Error(SCRIPT_NAME + ' unable to enumerate tables');
              if (!result.length) throw new Error(SCRIPT_NAME + ' has no tables');
              console.log('DBASE ' + DB_HOST + ':' + DB_PORT + '/' + SCRIPT_NAME + ' has ' + result.length + ' table' + ((result.length &gt; 1) ? 's' : ''));
            }).catch(function(err) {
              console.error('DBASE ' + err);
            });
        }).catch(function(err) {
          console.error('DBASE ' + err);
        });
      }).catch(function(err) {
        console.error('DBASE ' + err);
      });
  </code></pre>
  
  <p>Note the multiple identical catch blocks:</p>
  
  <pre><code>.catch(function(err) {
            console.error('DBASE ' + err);
          });
  </code></pre>
  
  <p>Is there a recommended / accepted / de facto way to reuse that exception handler across multiple levels of control structures?</p>