es2015/DBFactory.js
function handleConnectionError(event, error, wasBlocked, upgradeTriggered,
    reject, migrationPromiseRejector) {
  if (wasBlocked || upgradeTriggered) {
    event.preventDefault()
    return
  }
  
  reject(request.error)
  migrationPromiseRejector(request.error)
}
function handleConnectionError(event, error, wasBlocked, upgradeTriggered,
    reject, migrationPromiseRejector) {
  if (wasBlocked || upgradeTriggered) {
    event.preventDefault()
    return
  }
  
  reject(request.error)
  migrationPromiseRejector(request.error)
}
Handles a database error encountered during connection establishing.

@param {Event} event The error event.
@param {Error} error The encountered error.
@param {boolean} wasBlocked Flag signalling whether the connection has been
blocked.
@param {boolean} upgradeTriggered Flag signalling whether the database schema
upgrade process was triggered.
@param {function(Error)} reject The connection promise rejection callback.
@param {function(Error)} migrationPromiseRejector The schema migration
promise rejection callback.